Type Alias CommonMediaRequestBeta

CommonMediaRequest: {
    cmcd?: Cmcd;
    credentials?: RequestCredentials;
    customData?: any;
    headers?: Record<string, string>;
    method: string;
    mode?: RequestMode;
    responseType?: string;
    timeout?: number;
    url: string;
}

Common request API.

Type declaration

  • Optional Betacmcd?: Cmcd

    The Common Media Client Data (CMCD) that comprises media and request related information.

  • Optional Betacredentials?: RequestCredentials

    Indicates whether the user agent should send or receive cookies from the other domain in the case of cross-origin requests.

  • Optional BetacustomData?: any

    Any custom data.

  • Optional Betaheaders?: Record<string, string>

    The headers object associated with the request.

  • Betamethod: string

    The request's method (GET, POST, etc).

  • Optional Betamode?: RequestMode

    The mode of the request (e.g., cors, no-cors, same-origin, etc).

  • Optional BetaresponseType?: string

    The response type with which the response from the server shall be compatible.

  • Optional Betatimeout?: number

    The number of milliseconds the request can take before automatically being terminated. If undefined or value is 0 then there is no timeout.

  • Betaurl: string

    The URL of the request.