Beta
Optional
Beta
cmcd?: CmcdThe Common Media Client Data (CMCD) that comprises media and request related information.
Optional
Beta
credentials?: RequestCredentialsIndicates whether the user agent should send or receive cookies from the other domain in the case of cross-origin requests.
Optional
Beta
customAny custom data.
Optional
Beta
headers?: Record<string, string>The headers object associated with the request.
Beta
method: stringThe request's method (GET, POST, etc).
Optional
Beta
mode?: RequestModeThe mode of the request (e.g., cors, no-cors, same-origin, etc).
Optional
Beta
responseThe response type with which the response from the server shall be compatible.
Optional
Beta
timeout?: numberThe number of milliseconds the request can take before automatically being terminated. If undefined or value is 0 then there is no timeout.
Beta
url: stringThe URL of the request.
Common request API.