Class: shaka.net.HttpFetchPlugin

A networking plugin to handle http and https URIs via the Fetch API.

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:

(inner, 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