Interface HttpResponse<ResponseBody>

interface HttpResponse<ResponseBody> {
    body?: ResponseBody;
    elapsedTime?: number;
    headers: HttpHeaders;
    length?: number;
    request: HttpRequest;
    status: number;
    statusText: string;
    timeToFirstByte?: number;
    url: string;
}

Type Parameters

Properties

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

elapsedTime?: number

The elapsed time in seconds since this request was opened.

headers: HttpHeaders

Headers of the response.

length?: number

Amount of bytes of the response body (optional).

request: HttpRequest

Corresponding request object of this response

status: number

HTTP status code

statusText: string

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

timeToFirstByte?: number

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

url: string

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