Interface for fetch responses.

Hierarchy

Properties

Methods

Properties

body?: null | ResponseBody

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