Skip to content

INetRequestOptions

Type interface

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 boolean

Specify whether to send CORS credentials (defaults to false).

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