Dynamic module http

Index

Variables

Interfaces

Classes

Functions

Variables

STATUS_CODES: { [errorCode: number]: string; [errorCode: string]: string; }

(): string

Returns

string

(): string

Returns

string

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