Type alias HttpResponse

HttpResponse: {
    headers: HttpHeaders;
    statusCode: number;
    statusMessage: string;
    url: string;
    body?: Uint8Array[] | AsyncIterableIterator<Uint8Array>;
    method?: string;
}

Type declaration

  • headers: HttpHeaders

    HTTP response headers.

  • statusCode: number

    The HTTP status code.

  • statusMessage: string

    The HTTP status message.

  • url: string

    The final URL that was fetched after any redirects.

  • Optional body?: Uint8Array[] | AsyncIterableIterator<Uint8Array>

    An async iterator of Uint8Arrays or array that make up the body of the response.

  • Optional method?: string

    The HTTP method that was used.

Generated using TypeDoc