Only valid for request obtained from http.Server.

Extends

Properties

P readable: boolean

Type:
  • boolean
Inherited From:

Methods

M _read(size: number) void

Parameters:
Name Type
size number
Inherited From:
Returns: { void }

M addListener(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M emit(event: string, ...args: any) boolean

Parameters:
Name Type Argument
event string
...args any <repeatable>
Inherited From:
Returns: { boolean }

M listenerCount(emitter: events.EventEmitter, event: string) number

Parameters:
Name Type
emitter events.EventEmitter
event string
Inherited From:
Returns: { number }

M listeners(event: string) function()[]

Parameters:
Name Type
event string
Inherited From:
Returns: { Array.<function()> }

M on(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M once(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M pause() void

Inherited From:
Returns: { void }

M pipe<T>(destination: T, options: stream.Readable.PipeOptionsType) T

Parameters:
Name Type Argument
destination T
options stream.Readable.PipeOptionsType <optional>
Inherited From:
Returns: { T }

M push(chunk: any, encoding: string) boolean

Parameters:
Name Type Argument
chunk any
encoding string <optional>
Inherited From:
Returns: { boolean }

M read(size: number) string|Buffer

Parameters:
Name Type Argument
size number <optional>
Inherited From:
Returns: { string | Buffer }

M removeAllListeners(event: string) events.EventEmitter

Parameters:
Name Type Argument
event string <optional>
Inherited From:
Returns: { events.EventEmitter }

M removeListener(event: string, listener: function) events.EventEmitter

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.EventEmitter }

M resume() void

Inherited From:
Returns: { void }

M setEncoding(encoding: string) void

Parameters:
Name Type
encoding string
Inherited From:
Returns: { void }

M setMaxListeners(n: number) void

Parameters:
Name Type
n number
Inherited From:
Returns: { void }

M unpipe<T>(destination: T) void

Parameters:
Name Type Argument
destination T <optional>
Inherited From:
Returns: { void }

M unshift(chunk: string) void

Parameters:
Name Type
chunk string
Inherited From:
Returns: { void }

M unshift(chunk: Buffer) void

Parameters:
Name Type
chunk Buffer
Inherited From:
Returns: { void }
Parameters:
Name Type
oldStream NodeJS.ReadableStream
Inherited From:
Returns: { NodeJS.ReadableStream }