Skip to content

basalt / http/src / toNodeStream

Function: toNodeStream() ​

> toNodeStream(source): Readable

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

The source as a Node Readable, for the adapters whose transport is a Node response. Destroying the returned stream releases the original source: a web stream is cancelled, an async iterable gets its return().

Parameters ​

source ​

StreamSource

Returns ​

Readable

Released under the MIT License.