Skip to content

basalt / http/src / nodeStreamFrom

Function: nodeStreamFrom() ​

> nodeStreamFrom(pump, first): Readable

Defined in: http/src/stream.ts:252

A Node Readable over a pump whose first chunk has already been pulled. Destroying it (the client disconnected, the response was torn down) closes the pump, which destroys the original source.

Parameters ​

pump ​

StreamPump

first ​

Uint8Array<ArrayBufferLike> | null

Returns ​

Readable

Released under the MIT License.