See body interface in whatwg Fetch spec.
See body interface in whatwg Fetch spec.
see also Body in MDN
defined at ¶6.2 Body mixin in whatwg Fetch spec
This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type?
See ¶2 Model but mostly the examples in the whatwg streams spec
See ¶2 Model but mostly the examples in the whatwg streams spec
¶6.1 Headers Class of whatwg spec
¶6.1 Headers Class of whatwg spec
The Headers interface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.
For security reasons, some headers can only be controller by the user agent. These headers include the forbidden header names and forbidden response header names.
A Headers object also has an associated guard, which takes a value of immutable, request, request-no-cors, response, or none. This affects whether the set(), delete(), and append() methods will mutate the header. For more information see Guard.
You can retrieve a Headers object via the Request.headers and Response.headers properties, and create a new Headers object using the Headers.Headers() constructor.
MDN
defined at ¶6.1 Header Class in whatwg Fetch spec todo: it should be OpenEndedDictionary[ByteString]
This is not typed in the Fetch API but it is easy to create the most common defaults.
This is not typed in the Fetch API but it is easy to create the most common defaults.
The Notification interface allows to notify users of an incoming message or event.
The Notification interface allows to notify users of an incoming message or event.
NOTE: requires permission Note: This feature is available in Web Workers.
MDN
a new Notification
see ¶6.1 Headers class in whatwg Fetch spec.
see ¶6.1 Headers class in whatwg Fetch spec. also see: issue 164 in Fetch API git repo, as this is not clearly defined
defined at ¶2.1. Readable Streams of whatwg Streams spec.
defined at ¶2.1. Readable Streams of whatwg Streams spec.
Type of the Chunks returned by the Stream. Can't make it coveriant, due to T
¶3.3 Class ReadableStreamController of whatwg spec
¶3.3 Class ReadableStreamController of whatwg spec
The ReadableStreamController constructor cannot be used directly; it only works on a ReadableStream that is in the middle of being constructed.
Type of the Chunks to be enqueued to the Stream
See ¶3.4. Class ReadableStreamReader of whatwg streams spec.
See ¶3.4. Class ReadableStreamReader of whatwg streams spec.
The ReadableStreamReader class represents a readable stream reader designed to be vended [sic] by a ReadableStream instance.
The ReadableStreamReader constructor is generally not meant to be used directly; instead, a stream’s getReader() method should be used. This allows different classes of readable streams to vend different classes of readers without the consumer needing to know which goes with which.
Type of the Chunks returned by the Stream
The Request interface of the Fetch API represents a resource request.
The Request interface of the Fetch API represents a resource request. MDN
see ¶6.3 Request Class in whatwg spec
Fetch APIs RequestCache enum
Fetch APIs RequestCache enum
Fetch APIs RequestCredentials enum
Fetch APIs RequestCredentials enum
Fetch APIs RequestDestination enum
Fetch APIs RequestDestination enum
defined at ¶6.3 Request class of whatwg Fetch spec
See RequestInit in Fetch API The underlying object is a dictionary.
See RequestInit in Fetch API The underlying object is a dictionary. This trait is here to help encode the types.
Fetch API's RequestMode enum
Fetch API's RequestMode enum
Fetch API's RequestRedirect enum
Fetch API's RequestRedirect enum
Fetch APIs RequestType enum
Fetch APIs RequestType enum
¶6.4 Response class in whatwg spec
¶6.4 Response class in whatwg spec
See ¶6.4 Response class definition in whatwg Fetch spec.
See ¶6.4 Response class definition in whatwg Fetch spec.
WebIDL sequence<T> is js.Array[T] | JSIterable[T].
WebIDL sequence<T> is js.Array[T] | JSIterable[T]. However @mseddon knows at least Blink's IDL compiler treats these as simply js.Array[T] for now. We keep this type as a reminder to check in more detail
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
The URL() constructor returns a newly created URL object representing the URL defined by the parameters.
MDN
¶4.2.4.3. get state of whatwg streams spec
¶4.2.4.3. get state of whatwg streams spec
¶4.2. Class WritableStream of whatwg Stream spec
¶4.2. Class WritableStream of whatwg Stream spec
todo: the constructor
Type of the Chunks to be written to the Stream
Full Screen API
Full Screen API
Implicit imports for the notification api.
Implicit imports for the notification api.
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API
Pointer Lock API
Pointer Lock API
static methods associated with a Response object in ¶6.4 Response class of whatwg Fetch spec.
static methods associated with a Response object in ¶6.4 Response class of whatwg Fetch spec.
see https://fetch.spec.whatwg.org/#responsetype of whatwg Fetch spec
Implicit imports for the vibration api.
Implicit imports for the vibration api.
http://www.w3.org/TR/2015/REC-vibration-20150210/
The Beacon interface is used to schedule an asynchronous and non-blocking request to a web server.
The Beacon interface is used to schedule an asynchronous and non-blocking request to a web server. Beacon requests use the HTTP PUT method and requests typically do not require a response. Requests are guaranteed to be initiated before a page is unloaded and they are run to completion without requiring a blocking request (for example XMLHttpRequest).
MDN
Implements the Device Orientation API, Editor's draft, 26 February 2016.
Implements the Device Orientation API, Editor's draft, 26 February 2016.
http://w3c.github.io/deviceorientation/spec-source-orientation.html
Implements the Gamepad API.
Implements the Gamepad API.
The Intl object is the namespace for the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, and date and time formatting.
The Intl object is the namespace for the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, and date and time formatting.
The constructors for Collator, NumberFormat, and DateTimeFormat objects are properties of the Intl object. This page documents these properties as well as functionality common to the internationalization constructors and other language sensitive functions.
MDN
Implements the Permissions API.
Implements the Permissions API.
The Push API is currently specified here: http://www.w3.org/TR/2015/WD-push-api-20151215/
Service Workers
Service Workers