Version: 2.67.0

RequestInit

THEOplayer > RequestInit

RequestInit interface

Contains network request properties used to modify an HTTP request.

Signature:
export interface RequestInit

Properties

Property

Type

Description

body (optional)

RequestBody

The request's body.

headers (optional)

HTTPHeaders

The request's HTTP headers.

mediaType (optional)

MediaType

The request's media type.

method (optional)

RequestMethod

The request's HTTP method.

responseType (optional)

ResponseType

The request's response type.

subType (optional)

RequestSubType

The request's subtype.

type (optional)

RequestType

The request's type.

url (optional)

string

The request's URL.

useCredentials (optional)

boolean

Whether the player is allowed to use credentials for cross-origin requests.