Type Alias RequestParameters
body?: string;
cache?: RequestCache;
collectResourceTiming?: boolean;
credentials?: "same-origin" | "include";
headers?: any;
method?: "GET" | "POST" | "PUT";
referrerPolicy?: ReferrerPolicy;
type?: "string" | "json" | "arrayBuffer" | "image";
url: string;
}
Index
Properties
Optionalbody
Request body.
Optionalcache
Parameters supported only by browser fetch API. Property of the Request interface contains the cache mode of the request. It controls how the request will interact with the browser's HTTP cache. (https://developer.mozilla.org/en-US/docs/Web/API/Request/cache)
OptionalcollectResourceTiming
If true, Resource Timing API information will be collected for these transformed requests and returned in a resourceTiming property of relevant data events.
Optionalcredentials
'same-origin'|'include' Use 'include' to send cookies with cross-origin requests.
Optionalheaders
The headers to be sent with the request.
Optionalmethod
Request method 'GET' | 'POST' | 'PUT'.
OptionalreferrerPolicy
The referrer policy to use for the request. Controls how much referrer information is sent. (https://developer.mozilla.org/en-US/docs/Web/API/Request/referrerPolicy)
Optionaltype
Response body type to be returned.
url
The URL to be requested.
A
RequestParametersobject to be returned from Map.options.transformRequest callbacks.Example