interface HttpRequest {
    body?: HttpRequestBody;
    credentials: "omit" | "same-origin" | "include";
    headers: HttpHeaders;
    method: HttpRequestMethod;
    responseType: HttpResponseType;
    url: string;
}

Properties

Request body to send to the server (optional).

credentials: "omit" | "same-origin" | "include"

The credentials property as used in the fetch API and mapped to the XmlHttpRequest as follows:

'include' ... withCredentials = true
'omit'    ... withCredentials = false
headers: HttpHeaders

Headers of this request

HTTP method of the request

responseType: HttpResponseType

Type we expect the body to be.

url: string

URL of the request