Interface to provide HTTP request options.

interface HttpRequestOptions {
    credentials?: boolean;
    requestHeaders?: null | HttpRequestHeaders;
    requestParameters?: null | HttpRequestParameters;
}

Hierarchy (view full)

Properties

credentials?: boolean

Whether credentials should be included with every HTTP request.

requestHeaders?: null | HttpRequestHeaders

An object literal that represents headers (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified headers will be performed instead of creating an Image.

requestParameters?: null | HttpRequestParameters

An object literal that represents URL parameters (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified query parameters will be performed instead of creating an Image.

Since

2021.0