Dynamic module http

Index

Variables

Interfaces

Functions

Variables

STATUS_CODES: any

globalAgent: Agent

Functions

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

Parameters

  • port?: number optional
  • host?: string optional

Returns

any

createServer(requestListener?: (request: "http".ServerRequest, response: "http".ServerResponse) => void): Server

Parameters

  • requestListener?: (request: "http".ServerRequest, response: "http".ServerResponse) => void optional

Returns

Server

get(options: any, callback?: Function): ClientRequest

Parameters

  • options: any
  • callback?: Function optional

Returns

ClientRequest

request(options: any, callback?: Function): ClientRequest

Parameters

  • options: any
  • callback?: Function optional

Returns

ClientRequest