Interface ClientRequest

Hierarchy

Index

Properties

Methods

Properties

public writable: boolean

Methods

public abort()

public addListener(event: string, listener: Function): any

Parameters

  • event: string
  • listener: Function

Returns

any

public addListener(event: string, listener: Function): any

Parameters

  • event: string
  • listener: Function

Returns

any

public destroy()

public destroySoon()

public emit(event: string, arg1?: any, arg2?: any)

Parameters

  • event: string
  • arg1?: any optional
  • arg2?: any optional

public emit(event: string, arg1?: any, arg2?: any)

Parameters

  • event: string
  • arg1?: any optional
  • arg2?: any optional

public end(data?: any, encoding?: string)

Parameters

  • data?: any optional
  • encoding?: string optional

public listeners(event: string): Array<{ Function: any; }>

Parameters

  • event: string

Returns

Array<{ Function: any; }>

public listeners(event: string): Array<{ Function: any; }>

Parameters

  • event: string

Returns

Array<{ Function: any; }>

public on(event: string, listener: Function): any

Parameters

  • event: string
  • listener: Function

Returns

any

public on(event: string, listener: Function): any

Parameters

  • event: string
  • listener: Function

Returns

any

public once(event: string, listener: Function)

Parameters

  • event: string
  • listener: Function

public once(event: string, listener: Function)

Parameters

  • event: string
  • listener: Function

public removeAllListener(event: string)

Parameters

  • event: string

public removeAllListener(event: string)

Parameters

  • event: string

public removeListener(event: string, listener: Function)

Parameters

  • event: string
  • listener: Function

public removeListener(event: string, listener: Function)

Parameters

  • event: string
  • listener: Function

public setMaxListeners(n: number)

Parameters

  • n: number

public setMaxListeners(n: number)

Parameters

  • n: number

public setNoDelay(noDelay?: Function)

Parameters

  • noDelay?: Function optional

public setSocketKeepAlive(enable?: boolean, initialDelay?: number)

Parameters

  • enable?: boolean optional
  • initialDelay?: number optional

public setTimeout(timeout: number, callback?: Function)

Parameters

  • timeout: number
  • callback?: Function optional

public write(str: string, encoding?: string, fd?: string): boolean

Parameters

  • str: string
  • encoding?: string optional
  • fd?: string optional

Returns

boolean

public write(buffer: Buffer): boolean

Parameters

  • buffer: Buffer

Returns

boolean

public write(chunk: any, encoding?: string)

Parameters

  • chunk: any
  • encoding?: string optional