import { IncomingHttpHeaders , RequestOptions as HTTPRequestOptions } from 'http' ; import { RequestOptions as HTTPSRequestOptions } from 'https' ; import { URL } from 'url' ; export type HTTPModuleRequestOptions = HTTPRequestOptions | HTTPSRequestOptions | string | URL ; /**
 * Cut version of http.IncomingMessage.
 * Some transports work in a special Javascript environment where http.IncomingMessage is not available.
 */ export interface HTTPModuleRequestIncomingMessage { headers : IncomingHttpHeaders ; statusCode ? : number ; on ( event , listener ) : void ; setEncoding ( encoding ) : void ; } /**
 * Cut version of http.ClientRequest.
 * Some transports work in a special Javascript environment where http.IncomingMessage is not available.
 */ export interface HTTPModuleClientRequest { end ( chunk ) : void ; on ( event , listener ) : void ; } hidden export interface HTTPModule { param options param callback request ( options , callback ? ) : HTTPModuleClientRequest ; }