Constructor
new HttpXHRPlugin()
A networking plugin to handle http and https URIs via XHR.
- Source:
Members
Xhr_ :function(new: XMLHttpRequest)
Overridden in unit tests, but compiled out in production.
Type:
- function(new: XMLHttpRequest)
- Source:
Methods
headersToGenericObject_(xhrnon-null) → {Object.<string, string>}
Parameters:
Name | Type | Description |
---|---|---|
xhr |
XMLHttpRequest |
- Source:
Returns:
- Type
- Object.<string, string>
parse(uri, request, requestType, progressUpdated, headersReceived) → {shaka.extern.IAbortableOperation.<shaka.extern.Response>}
Parameters:
Name | Type | Description |
---|---|---|
uri |
string | |
request |
shaka.extern.Request | |
requestType |
shaka.net.NetworkingEngine.RequestType | |
progressUpdated |
shaka.extern.ProgressUpdated | Called when a progress event happened. |
headersReceived |
shaka.extern.HeadersReceived | Called when the headers for the download are received, but before the body is. |
- Source: