Classes
Interfaces
Properties
SP globalAgent: http.Agent
SP STATUS_CODES: module:http.STATUS_CODESType
Methods
Parameters:
Name | Type | Argument |
---|---|---|
port |
number |
<optional> |
host |
string |
<optional> |
SM createServer(requestListener: module:http.CreateServerRequestListenerCallback) http.Server
Parameters:
Name | Type | Argument |
---|---|---|
requestListener |
module:http.CreateServerRequestListenerCallback |
<optional> |
SM get(options: any, callback: module:http.GetCallbackCallback) http.ClientRequest
Parameters:
Name | Type | Argument |
---|---|---|
options |
any | |
callback |
module:http.GetCallbackCallback |
<optional> |
SM request(options: any, callback: module:http.RequestCallbackCallback) http.ClientRequest
Parameters:
Name | Type | Argument |
---|---|---|
options |
any | |
callback |
module:http.RequestCallbackCallback |
<optional> |
Callbacks
CreateServerRequestListenerCallback(request: http.IncomingMessage, response: http.ServerResponse) void
GetCallbackCallback(res: http.IncomingMessage) void
RequestCallbackCallback(res: http.IncomingMessage) void
Type Definitions
- Deprecated:
- Use IncomingMessage