Skip to main content
The part of a Node readable stream the adapters use, so neither adapter has to name a framework’s own request type.

Methods

on()

Call Signature

Each chunk of the body, in order.
Parameters
event
"data"
listener
(chunk) => void
Returns
unknown

Call Signature

The body is complete.
Parameters
event
"end"
listener
() => void
Returns
unknown

Call Signature

The stream failed; the adapter rejects with the error.
Parameters
event
"error"
listener
(error) => void
Returns
unknown