nodeHttpMod

object nodeHttpMod
class Object
trait Matchable
class Any

Type members

Classlikes

@JSImport("node:http", "Agent") @native @JSType
class Agent() extends Agent
@JSImport("node:http", "ClientRequest") @native @JSType
class ClientRequest extends StObject
@JSImport("node:http", "IncomingMessage") @native @JSType
class IncomingMessage extends StObject
@JSImport("node:http", "OutgoingMessage") @native @JSType
class OutgoingMessage() extends StObject
@JSImport("node:http", "Server") @native @JSType
class Server() extends StObject
@JSImport("node:http", "ServerResponse") @native @JSType
class ServerResponse extends StObject

Value members

Concrete methods

@inline
@inline
@inline
def createServer(options: ServerOptions, requestListener: RequestListener): Server
@inline
def createServer(requestListener: RequestListener): Server
@inline
@inline
def get(options: RequestOptions, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def get(options: URL_): ClientRequest
@inline
def get(options: URL_, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def get(options: String): ClientRequest
@inline
def get(options: String, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def get(url: URL_, options: RequestOptions): ClientRequest
@inline
def get(url: URL_, options: RequestOptions, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def get(url: String, options: RequestOptions): ClientRequest
@inline
def get(url: String, options: RequestOptions, callback: Function1[IncomingMessage, Unit]): ClientRequest
@JSImport("node:http", "globalAgent") @native
@inline
def globalAgent_=(x: Agent): Unit
@inline
@inline
def request(options: RequestOptions, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def request(options: URL_): ClientRequest
@inline
def request(options: URL_, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def request(options: String): ClientRequest
@inline
def request(options: String, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
@inline
def request(url: URL_, options: RequestOptions, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline
def request(url: String, options: RequestOptions): ClientRequest
@inline
def request(url: String, options: RequestOptions, callback: Function1[IncomingMessage, Unit]): ClientRequest
@inline

This utility function converts a URL object into an ordinary options object as expected by the http.request() and https.request() APIs.

This utility function converts a URL object into an ordinary options object as expected by the http.request() and https.request() APIs.

Concrete fields

@JSImport("node:http", "METHODS") @native
val METHODS: Array[String]
@JSImport("node:http") @native
val ^: Any
@JSImport("node:http", "maxHeaderSize") @native
val maxHeaderSize: Double

Read-only property specifying the maximum allowed size of HTTP headers in bytes. Defaults to 16KB. Configurable using the --max-http-header-size CLI option.

Read-only property specifying the maximum allowed size of HTTP headers in bytes. Defaults to 16KB. Configurable using the --max-http-header-size CLI option.