Class: shaka.util.AjaxRequest.Parameters

Constructor

new Parameters()

A collection of parameters which an instance of a subclass may wish to override.
Source:

Members

baseRetryDelayMs :number

The delay before the first retry, in milliseconds.
Type:
  • number
Source:

body :ArrayBuffer|string

The request body, if desired.
Type:
  • ArrayBuffer | string
Source:

contentDatabase :shaka.util.ContentDatabaseReader

The content database used if the URI is a data URI. Required for data URIs.
Type:
Source:

maxAttempts :number

The maximum number of times the request should be attempted.
Type:
  • number
Source:

method :string

The HTTP request method, such as 'GET' or 'POST'.
Type:
  • string
Source:

(non-null) requestHeaders :Object.<string, string>

HTTP request headers as key-value pairs.
Type:
  • Object.<string, string>
Source:

requestTimeoutMs :number

The request timeout, in milliseconds. Zero means "unlimited".
Type:
  • number
Source:

responseType :string

The response type, corresponding to XMLHttpRequest.responseType.
Type:
  • string
Source:

retryBackoffFactor :number

The multiplier for successive retry delays.
Type:
  • number
Source:

retryFuzzFactor :number

The maximum amount of fuzz to apply to each retry delay. For example, 0.5 means "between 50% below and 50% above the retry delay."
Type:
  • number
Source:

synchronizeClock :boolean

Will attempt to read the server's Date header and synchronize the clock.
Type:
  • boolean
Source:
See:

withCredentials :boolean

Make requests with credentials. This will allow cookies in cross-site requests.
Type:
  • boolean
Source:
See: