Version: 2.69.0

RequestInit

THEOplayer > RequestInit

RequestInit interface

Contains network request properties used to modify an HTTP request.

Signature:
export interface RequestInit

Properties

PropertyTypeDescription
bodyRequestBodyThe request's body.
headersHTTPHeadersThe request's HTTP headers.
mediaTypeMediaTypeThe request's media type.
methodRequestMethodThe request's HTTP method.
responseTypeResponseTypeThe request's response type.
subTypeRequestSubTypeThe request's subtype.
typeRequestTypeThe request's type.
urlstringThe request's URL.
useCredentialsbooleanWhether the player is allowed to use credentials for cross-origin requests.