The default proxy to use.
If this is true
, proxy support will be completely disabled.
Readonly
interceptorsGlobally registered interceptors.
Maximum length of an url before a GET request is switched to POST (if supportsPostSwitching is true for a request). GET requests altered in this way will have their query parameters placed into the new POST request's body (as content-type application/x-www-form-urlencoded).
Switching to POST requests can be disabled entirely by setting this property to a value <= 0
.
Readonly
proxyUsage rules for proxied requests.
When a proxy rule matches a request URL, the proxy will be chosen to perform the request instead.
Readonly
origin: stringAn origin to match against request URLs.
URLs matching this origin pattern will use the configured proxyUrl
(if present)
or the default proxy URL.
Origins must contain protocol, a hostname and (optionally) a port.
For example, https://subdomain.arcgis.com
is a valid origin.
Optional
Readonly
proxyUrl?: stringURL to a server endpoint that can act as proxy. If this URL is not specified, a default proxy will be used.
Default time in milliseconds after which fetch aborts with a timeout.
Readonly
trustedUsages rules for trusted servers.
apprt-fetch will automatically send credentials to these servers.
Readonly
origin: stringAn origin to match against request URLs.
Origins must contain protocol, a hostname and (optionally) a port.
For example, https://subdomain.arcgis.com
is a valid origin.
Adds a new trusted server rule to the configuration. Requests that match the rule will send credentials automatically, without the need to declare it in individual requests.
Note: there can only be one trusted server rule for an origin.
Registers a global interceptor. Use the handle returned by this method to deregister the interceptor when it is no longer needed.
Removes a trusted server rule from the configuration.
Global configuration of this bundle.