Interface IncomingMessage
Hierarchy
-
Readable
- IncomingMessage
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Parameters
-
Optional opts: ReadableOptions
Returns IncomingMessage
-
Properties
connection
headers
httpVersion
httpVersionMajor
httpVersionMinor
Optional method
rawHeaders
rawTrailers
readable
socket
Optional statusCode
Only valid for response obtained from http.ClientRequest.
Optional statusMessage
Only valid for response obtained from http.ClientRequest.
trailers
Optional url
Only valid for request obtained from http.Server.
Static defaultMaxListeners
Methods
_read
-
Parameters
-
size: number
Returns void
-
addListener
-
Event emitter The defined events on documents including:
- close
- data
- end
- readable
- error
Parameters
-
event: string
-
listener: Function
Returns this
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "data"
-
listener: function
-
-
Parameters
-
chunk: Buffer | string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "end"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "readable"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
destroy
-
Parameters
-
Optional error: Error
Returns void
-
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Parameters
-
event: "close"
Returns boolean
-
-
Parameters
-
event: "data"
-
chunk: Buffer | string
Returns boolean
-
-
Parameters
-
event: "end"
Returns boolean
-
-
Parameters
-
event: "readable"
Returns boolean
-
-
Parameters
-
event: "error"
-
err: Error
Returns boolean
-
eventNames
-
Returns (string | symbol)[]
getMaxListeners
-
Returns number
isPaused
-
Returns boolean
listenerCount
-
Parameters
-
type: string | symbol
Returns number
-
listeners
-
Parameters
-
event: string | symbol
Returns Function[]
-
on
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "data"
-
listener: function
-
-
Parameters
-
chunk: Buffer | string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "end"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "readable"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
once
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "data"
-
listener: function
-
-
Parameters
-
chunk: Buffer | string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "end"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "readable"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
pause
-
Returns this
pipe
-
Type parameters
Parameters
-
destination: T
-
Optional options: object
-
Optional end?: boolean
-
Returns T
-
prependListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "data"
-
listener: function
-
-
Parameters
-
chunk: Buffer | string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "end"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "readable"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
prependOnceListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "data"
-
listener: function
-
-
Parameters
-
chunk: Buffer | string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "end"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "readable"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
push
-
Parameters
-
chunk: any
-
Optional encoding: string
Returns boolean
-
read
-
Parameters
-
Optional size: number
Returns any
-
removeAllListeners
-
Parameters
-
Optional event: string | symbol
Returns this
-
removeListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "data"
-
listener: function
-
-
Parameters
-
chunk: Buffer | string
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "end"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "readable"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
resume
-
Returns this
setEncoding
-
Parameters
-
encoding: string
Returns void
-
setMaxListeners
-
Parameters
-
n: number
Returns this
-
setTimeout
-
Parameters
-
msecs: number
-
callback: Function
Returns Timer
-
unpipe
-
Type parameters
Parameters
-
Optional destination: T
Returns void
-
unshift
-
Parameters
-
chunk: any
Returns void
-
wrap
-
Parameters
-
oldStream: ReadableStream
Returns Readable
-
Static listenerCount
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
Only valid for request obtained from http.Server.