basalt / http/src / webStreamFrom
Function: webStreamFrom()
> webStreamFrom(pump, first, onError?): ReadableStream<Uint8Array<ArrayBufferLike>>
Defined in: http/src/stream.ts:279
A web ReadableStream over a pump whose first chunk has already been pulled. pull runs only when the consumer has room, so a slow client slows the source; cancel (the client disconnecting) closes it.
Parameters
pump
first
Uint8Array<ArrayBufferLike> | null
onError?
(error) => void
Returns
ReadableStream<Uint8Array<ArrayBufferLike>>