Version: 2.67.0

Request

THEOplayer > Request

Request interface

Represents an HTTP request.

Signature:
export interface Request

Properties

Property

Type

Description

body

RequestBody

The request's body.

headers

HTTPHeaders

The request's HTTP headers.

mediaType

MediaType

The request's media type.

method

RequestMethod

The request's HTTP method.

responseType

ResponseType

The request's response type.

subType

RequestSubType

The request's subtype.

type

RequestType

The request's type.

url

string

The request's URL.

useCredentials

boolean

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