Interface ClientRequest
Hierarchy
-
Writable
- ClientRequest
Implements
Index
Constructors
Properties
Methods
- _write
- abort
- add
Listener - add
Trailers - emit
- end
- event
Names - get
Header - get
Max Listeners - listener
Count - listeners
- on
- once
- pipe
- prepend
Listener - prepend
Once Listener - remove
All Listeners - remove
Header - remove
Listener - set
Default Encoding - set
Header - set
Max Listeners - set
NoDelay - set
Socket Keep Alive - set
Timeout - write
- listener
Count
Constructors
constructor
-
Parameters
-
Optional opts: WritableOptions
Returns ClientRequest
-
Properties
writable
Static defaultMaxListeners
Methods
_write
-
Parameters
-
chunk: any
-
encoding: string
-
callback: Function
Returns void
-
abort
-
Returns void
addListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "drain"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "finish"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "pipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "unpipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
addTrailers
-
Parameters
-
headers: any
Returns void
-
emit
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Parameters
-
event: "close"
Returns boolean
-
-
Parameters
-
event: "drain"
-
chunk: Buffer | string
Returns boolean
-
-
Parameters
-
event: "error"
-
err: Error
Returns boolean
-
-
Parameters
-
event: "finish"
Returns boolean
-
-
Parameters
-
event: "pipe"
-
src: Readable
Returns boolean
-
-
Parameters
-
event: "unpipe"
-
src: Readable
Returns boolean
-
end
-
Returns void
-
Parameters
-
buffer: Buffer
-
Optional cb: Function
Returns void
-
-
Parameters
-
str: string
-
Optional cb: Function
Returns void
-
-
Parameters
-
str: string
-
Optional encoding: string
-
Optional cb: Function
Returns void
-
-
Parameters
-
Optional data: any
-
Optional encoding: string
Returns void
-
eventNames
-
Returns (string | symbol)[]
getHeader
-
Parameters
-
name: string
Returns string
-
getMaxListeners
-
Returns number
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: "drain"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "finish"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "pipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "unpipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
once
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "drain"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "finish"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "pipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "unpipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
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: "drain"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "finish"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "pipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "unpipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
prependOnceListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "drain"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "finish"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "pipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "unpipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
removeAllListeners
-
Parameters
-
Optional event: string | symbol
Returns this
-
removeHeader
-
Parameters
-
name: string
Returns void
-
removeListener
-
Parameters
-
event: string
-
listener: Function
Returns this
-
-
Parameters
-
event: "close"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "drain"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "error"
-
listener: function
-
-
Parameters
-
err: Error
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "finish"
-
listener: function
-
-
Returns void
-
-
Returns this
-
-
Parameters
-
event: "pipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: "unpipe"
-
listener: function
-
-
Parameters
-
src: Readable
Returns void
-
-
-
Returns this
-
setDefaultEncoding
-
Parameters
-
encoding: string
Returns this
-
setHeader
-
Parameters
-
name: string
-
value: string | string[]
Returns void
-
setMaxListeners
-
Parameters
-
n: number
Returns this
-
setNoDelay
-
Parameters
-
Optional noDelay: boolean
Returns void
-
setSocketKeepAlive
-
Parameters
-
Optional enable: boolean
-
Optional initialDelay: number
Returns void
-
setTimeout
-
Parameters
-
timeout: number
-
Optional callback: Function
Returns void
-
write
-
Parameters
-
buffer: Buffer
Returns boolean
-
-
Parameters
-
buffer: Buffer
-
Optional cb: Function
Returns boolean
-
-
Parameters
-
str: string
-
Optional cb: Function
Returns boolean
-
-
Parameters
-
str: string
-
Optional encoding: string
-
Optional cb: Function
Returns boolean
-
-
Parameters
-
str: string
-
Optional encoding: string
-
Optional fd: string
Returns boolean
-
-
Parameters
-
chunk: any
-
Optional encoding: string
Returns void
-
Static listenerCount
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
Event emitter The defined events on documents including: