A response for a streaming request. Unlike the base response, the body and the status message are always present.

Hierarchy

Properties

Methods

Properties

The response body stream. An implementation provides it for a request made with Options.streaming. It can also provide it for other requests.

https://developer.mozilla.org/en-US/docs/Web/API/Response/body

headers: Headers
status: number
statusText: string

The HTTP status message of the response. Optional so existing implementations remain valid.

https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText

Methods

  • Read the response and provide it as decoded json.

    Returns Promise<any>

  • Read the response and provide it as a string.

    Returns Promise<string>

Generated using TypeDoc