The adapter to use to complete the request.
Used in conjunction with ProxyRules to determine the domain name for the resulting Request URL. If an empty string is provided then a relative URL (one without a protocol or domain name) will be created using the existing domain name and protocol.
An optional payload to send to the URL, set when calling createRequest().
The HTTP headers to use on the request.
'myapps.myserver.com', 'localhost', etc.
Can be used to skip certain behaviors. See documentation for details.
One or more keys in a request object whose values must match
the given regular expression patterns.E.g.: {base: 'cdn'}
or{base: 'myapp', path: 'load.+'}
The HTTP verb to use.
Can be used to specify the protocol, host name, and port number in one setting, rather than 3 different settings.
Combined with the base path (if provided) to construct an absolute or relative URL.
80, 8080, etc.
'http', 'https', 'file', etc.
The desired response type. Can be one of ''
(the default),
'text'
, 'json'
, 'arraybuffer'
, 'blob'
or 'document'
. See the XHR spec
for more information. Setting this will change the Response.data type.
The number of milliseconds to wait before aborting the data call.
The URL to open, constructed using Proxy.url() and any ProxyRules that match the given Request properties as well as any optional parameters passed to createRequest().
Whether to send Cookies with the request.
Represents a single rule in a proxy instance. A Proxy rule looks like a normal Request object with an additional property
match
that specifies the property values on a Request instance that must match in order for the rule to be applied.