Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HttpResponse<ResponseBody>

Type parameters

Hierarchy

  • HttpResponse

Index

Properties

Optional body

body: ResponseBody

Body of the response with type defined by HttpRequest.responseType (optional).

Optional elapsedTime

elapsedTime: number

The elapsed time in seconds since this request was opened.

headers

headers: Header[]

Headers of the response.

Optional length

length: number

Amount of bytes of the response body (optional).

request

request: HttpRequest

Corresponding request object of this response

status

status: number

HTTP status code

statusText

statusText: string

Status text provided by the server or default value if not present in response.

Optional timeToFirstByte

timeToFirstByte: number

The time-to-first-byte for this request in seconds.

url

url: string

URL of the actual request. May differ from HttpRequest.url when redirects have happened.

Generated using TypeDoc