Documentation
    Preparing search index...

    Interface ByteReaderLike

    One pull from a ReadableBodyLike. releaseLock is optional because a hand-rolled test reader has nothing to unlock.

    interface ByteReaderLike {
        read(): Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike> }>;
        releaseLock?(): void;
    }

    Hierarchy (View Summary)

    Index
    • The next chunk, or { done: true } when the body is exhausted.

      Returns Promise<{ done: boolean; value?: Uint8Array<ArrayBufferLike> }>

    • Unlocks the stream; a no-op on a fake that was never locked.

      Returns void