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


Request body to send to the server (optional).

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

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