-
Notifications
You must be signed in to change notification settings - Fork 0
fetch
It is an alternative default transport for making HTTP calls using fetch() instead of XHR.
Don't forget to consult the cookbook to see working snippets solving simple real-world problems.
Replaces the current default transport with itself.
Replaces the current default transport with the previous value.
Various global defaults, which can be overridden on a per-request basis. The defaults are selected to emulate XHR as close as possible.
Specifies the default mode. Default: 'cors'.
Property fetchMode of request options is used to specify it on a per-request basis.
Specifies the default cache mode. Default: 'default'.
Property fetchCache of request options is used to specify it on a per-request basis.
Specifies the default redirect mode. Default: 'follow'.
Property fetchRedirect of request options is used to specify it on a per-request basis.
Specifies the default referrer mode. Default: 'client'.
Property fetchReferrer of request options is used to specify it on a per-request basis.
Specifies the default referrer policy. Default: 'no-referrer-when-downgrade'.
Property fetchReferrerPolicy of request options is used to specify it on a per-request basis.
Specifies the default credentials mode. Default: 'same-origin'.
The property fetchCredentials of request options is used to specify it on a per-request basis.