- Source:
Returns:
Members
(private, static, constant) AbortController_ :function(new: AbortController)
Overridden in unit tests, but compiled out in production.
Type:
- function(new: AbortController)
- Source:
(private, static, constant) fetch_ :function(string, !RequestInit)
Overridden in unit tests, but compiled out in production.
Type:
- function(string, !RequestInit)
- Source:
(private, static, constant) Headers_ :function(new: Headers)
Overridden in unit tests, but compiled out in production.
Type:
- function(new: Headers)
- Source:
(private, static, constant) ReadableStream_ :function(new: ReadableStream, !Object)
Overridden in unit tests, but compiled out in production.
Type:
- function(new: ReadableStream, !Object)
- Source:
(inner, constant, non-null) init :RequestInit
Type:
- RequestInit
- Source:
Methods
(export, static) isSupported() → {boolean}
Determine if the Fetch API is supported in the browser. Note: this is
deliberately exposed as a method to allow the client app to use the same
logic as Shaka when determining support.
- Source:
Returns:
- Type
- boolean
(private, static) request_(uri, requestType, initnon-null, abortStatus, progressUpdated) → (non-null) {Promise.<!shaka.extern.Response>}
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | |
requestType |
shaka.net.NetworkingEngine.RequestType | |
init |
RequestInit | |
abortStatus |
shaka.net.HttpFetchPlugin.AbortStatus | |
progressUpdated |
shaka.extern.ProgressUpdated |
- Source:
Returns:
- Type
- Promise.<!shaka.extern.Response>
Type Definitions
AbortStatus
Type:
- {canceled: boolean, timedOut: boolean}
Properties:
Name | Type | Description |
---|---|---|
canceled |
boolean | Indicates if the request was canceled. |
timedOut |
boolean | Indicates if the request timed out. |
- Source: