Classes

Agent

Interfaces

AgentOptions
ClientRequest
IncomingMessage
Server
ServerRequest
ServerResponse

Properties

SP globalAgent: http.Agent

Type:

Methods

SM createClient(port: number, host: string) any

Parameters:
Name Type Argument
port number <optional>
host string <optional>
Returns: { any }
Parameters:
Name Type Argument
requestListener module:http.CreateServerRequestListenerCallback <optional>
Returns: { http.Server }

SM get(options: any, callback: module:http.GetCallbackCallback) http.ClientRequest

Parameters:
Name Type Argument
options any
callback module:http.GetCallbackCallback <optional>
Returns: { http.ClientRequest }

SM request(options: any, callback: module:http.RequestCallbackCallback) http.ClientRequest

Parameters:
Name Type Argument
options any
callback module:http.RequestCallbackCallback <optional>
Returns: { http.ClientRequest }

Callbacks

CreateServerRequestListenerCallback(request: http.IncomingMessage, response: http.ServerResponse) void

Parameters:
Name Type
request http.IncomingMessage
response http.ServerResponse
Returns: { void }

GetCallbackCallback(res: http.IncomingMessage) void

Parameters:
Name Type
res http.IncomingMessage
Returns: { void }

RequestCallbackCallback(res: http.IncomingMessage) void

Parameters:
Name Type
res http.IncomingMessage
Returns: { void }

Type Definitions

T STATUS_CODESType

Type:
  • Object
Deprecated:
  • Use IncomingMessage