THEOplayer Web SDK
    Preparing search index...

    Interface RequestInit

    Contains network request properties used to modify an HTTP request.

    interface RequestInit {
        body?: RequestBody;
        headers?: HTTPHeaders;
        mediaType?: MediaType;
        method?: RequestMethod;
        responseType?: ResponseType;
        subType?: RequestSubType;
        type?: RequestType;
        url?: string;
        useCredentials?: boolean;
    }
    Index

    Properties

    The request's body.

    The original request's body.

    headers?: HTTPHeaders

    The request's HTTP headers.

    The original request's HTTP headers.

    mediaType?: MediaType

    The request's media type.

    The original request's media type.

    method?: RequestMethod

    The request's HTTP method.

    The original request's HTTP method.

    responseType?: ResponseType

    The request's response type.

    The original request's response type.

    subType?: RequestSubType

    The request's subtype.

    The original request's subtype.

    The request's type.

    The original request's type.

    url?: string

    The request's URL.

    The original request's URL.

    useCredentials?: boolean

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


    - Credentials are cookies, authorization headers or TLS client certificates.

    The original request's useCredentials value.