httpMod

object httpMod
class Object
trait Matchable
class Any

Type members

Classlikes

@JSImport("http", "Agent") @native @JSType
class Agent() extends StObject
@native @JSType
trait AgentOptions extends StObject
Companion
object
object AgentOptions
Companion
class
@JSImport("http", "ClientRequest") @native @JSType
class ClientRequest extends StObject
@native @JSType
trait ClientRequestArgs extends StObject
Companion
object
Companion
class
@native @JSType
trait HttpBase extends StObject
@native @JSType
trait IncomingHttpHeaders extends StObject with Dict[String | Array[String]]
Companion
object
Companion
class
@JSImport("http", "IncomingMessage") @native @JSType
class IncomingMessage extends StObject
@native @JSType
trait InformationEvent extends StObject
Companion
object
Companion
class
@JSImport("http", "OutgoingMessage") @native @JSType
class OutgoingMessage() extends StObject
@JSImport("http", "Server") @native @JSType
class Server() extends StObject with HttpBase
@native @JSType
trait ServerOptions extends StObject
Companion
object
Companion
class
@JSImport("http", "ServerResponse") @native @JSType
class ServerResponse extends StObject

Types

type OutgoingHttpHeader = Double | String | Array[String]

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("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("http", "METHODS") @native
val METHODS: Array[String]
@JSImport("http") @native
val ^: Any
@JSImport("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.