Readonly
requestReadonly
connectionForces all written events to be buffered in memory. The buffered data will be flushed when uncork is called.
Flushes all data buffered since cork was called.
NOTE: It is HIGHLY recommended that uncorking should always be done via
process.nextTick
, not during the EventEmitter.on()
call.
Synchronously calls each of the listeners registered for the event key supplied in registration order. If the BufferedEventEmitter is currently corked, the event will be buffered until uncork is called.
The name of the event
Rest
...args: any[]Event payload
Static
RESPONSEEmitted when the http response headers have arrived.
Static
DATAEmitted when http response data is available.
Static
ERROREmitted when an error occurs in stream processing
Static
ENDEmitted when the stream has completed
Static
HEADERSEmitted when inline headers are delivered while communicating over H2
Generated using TypeDoc
Stream that sends a request and receives a response.
Create an HttpClientStream with request.
NOTE: The stream sends no data until activate is called. Call activate when you're ready for callbacks and events to fire.