basalt / http/src / StreamPump
Interface: StreamPump
Defined in: http/src/stream.ts:176
A pull reader over any StreamSource: one chunk at a time, with an explicit close(). Used by the adapters whose transport is a web ReadableStream, where pulling on demand is what makes backpressure real.
Properties
closed
> readonly closed: boolean
Defined in: http/src/stream.ts:181
Methods
close()
> close(error?): Promise<void>
Defined in: http/src/stream.ts:180
Releases the source (destroy/cancel/return). Idempotent, never throws.
Parameters
error?
Error
Returns
Promise<void>
next()
> next(): Promise<Uint8Array<ArrayBufferLike> | null>
Defined in: http/src/stream.ts:178
The next chunk, or null at the end of the source.
Returns
Promise<Uint8Array<ArrayBufferLike> | null>