Interface FetchBodyReader

A reader over the response body stream. read resolves with the next chunk, or with done: true when the server ends the stream, and rejects when the connection terminates before the server ends the stream.

Hierarchy

  • FetchBodyReader

Methods

Methods

  • Releases the reader and its connection. A standard reader always has it; it is optional so a minimal injected transport can omit it. The client calls it on teardown, because the abort signal alone cannot release a transport that ignores the signal.

    Returns void | Promise<unknown>

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

Generated using TypeDoc