Represents a single http message exchange (request/response) in HTTP/1.1. In H2, it may also represent a PUSH_PROMISE followed by the accompanying response.
NOTE: Binding either the ready or response event will uncork any buffered events and start event delivery
Begin sending the request.
The stream does nothing until this is called. Call activate() when you are ready for its callbacks and events to fire.
Closes and ends all communication on this stream. Called automatically after the 'end' event is delivered. Calling this manually is only necessary if you wish to terminate communication mid-request/response.
Forces all written events to be buffered in memory. The buffered data will be flushed when BufferedEventEmitter.uncork is called.
The name of the event
Flushes all data buffered since BufferedEventEmitter.cork was called.
NOTE: It is HIGHLY recommended that uncorking should always be done via
process.nextTick, not during the
Generated using TypeDoc