Skip to content

INetRequestOptions

Type interface

Options for load().

Sources

INetRequestOptions is an interface: it describes a shape of data and is not imported on its own.

Properties

requestHeaders

Type { key: string, value: string }[]

Custom request headers to be added to HTTP(S) request.

responseType

Type XMLHttpRequestResponseType

Specify expected response type.

More info: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType

withCredentials

Type undefined | false | trueDefault false

Sends credentials, such as cookies, with cross-origin requests.

More info: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials