package experimental
- Alphabetic
- By Inheritance
- experimental
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
AbortController extends Object
The AbortController interface represents a controller object that allows you to abort one or more DOM requests as and when desired.
The AbortController interface represents a controller object that allows you to abort one or more DOM requests as and when desired.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
-
trait
AbortSignal extends raw.EventTarget
The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
MDN
- Annotations
- @JSType() @native()
-
trait
Body extends Object
See body interface in whatwg Fetch spec.
See body interface in whatwg Fetch spec.
see also Body in MDN
- Annotations
- @JSType() @native()
-
type
BodyInit = |[|[|[Blob, BufferSource], FormData], String]
defined at ¶6.2 Body mixin in whatwg Fetch spec
-
type
ByteString = String
This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type?
-
trait
Chunk[+T] extends Object
See ¶2 Model but mostly the examples in the whatwg streams spec
See ¶2 Model but mostly the examples in the whatwg streams spec
- Annotations
- @JSType() @native()
-
class
Headers extends Object with Iterable[Array[ByteString]]
¶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
- Annotations
- @JSType() @native() @JSGlobal()
-
type
HeadersInit = |[|[Headers, Sequence[Sequence[ByteString]]], OpenEndedDictionary[ByteString]]
defined at ¶6.1 Header Class in whatwg Fetch spec todo: it should be OpenEndedDictionary[ByteString]
-
trait
HttpMethod extends Any
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.
- Annotations
- @JSType() @native()
-
class
Notification extends raw.EventTarget
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
- returns
a new Notification
- Annotations
- @JSType() @JSGlobal( "Notification" ) @native()
-
trait
NotificationOptions extends Object
- Annotations
- @JSType() @native()
-
type
OpenEndedDictionary[T] = Dictionary[T]
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
-
trait
ReadableStream[+T] extends Object
defined at ¶2.1. Readable Streams of whatwg Streams spec.
defined at ¶2.1. Readable Streams of whatwg Streams spec.
- T
Type of the Chunks returned by the Stream. Can't make it coveriant, due to T
- Annotations
- @JSType() @native()
-
class
ReadableStreamController[-T] extends Object
¶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.
- T
Type of the Chunks to be enqueued to the Stream
- Annotations
- @JSType() @native() @JSGlobal()
-
class
ReadableStreamReader[+T] extends Object
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.
- T
Type of the Chunks returned by the Stream
- Annotations
- @JSType() @native() @JSGlobal()
-
sealed
trait
ReferrerPolicy extends Any
- Annotations
- @JSType() @native()
-
class
Request extends Object
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
- Annotations
- @JSType() @native() @JSGlobal()
-
sealed
trait
RequestCache extends Any
Fetch APIs RequestCache enum
Fetch APIs RequestCache enum
- Annotations
- @JSType() @native()
-
sealed
trait
RequestCredentials extends Any
Fetch APIs RequestCredentials enum
Fetch APIs RequestCredentials enum
- Annotations
- @JSType() @native()
-
sealed
trait
RequestDestination extends Any
Fetch APIs RequestDestination enum
Fetch APIs RequestDestination enum
- Annotations
- @JSType() @native()
-
type
RequestInfo = |[String, Request]
defined at ¶6.3 Request class of whatwg Fetch spec
-
trait
RequestInit extends Object
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.
- Annotations
- @JSType()
-
sealed
trait
RequestMode extends Any
Fetch API's RequestMode enum
Fetch API's RequestMode enum
- Annotations
- @JSType() @native()
-
sealed
trait
RequestRedirect extends Any
Fetch API's RequestRedirect enum
Fetch API's RequestRedirect enum
- Annotations
- @JSType() @native()
-
sealed
trait
RequestType extends Any
Fetch APIs RequestType enum
Fetch APIs RequestType enum
- Annotations
- @JSType() @native()
-
class
Response extends Object with Body
¶6.4 Response class in whatwg spec
¶6.4 Response class in whatwg spec
- Annotations
- @JSType() @native() @JSGlobal()
-
trait
ResponseInit extends Object
See ¶6.4 Response class definition in whatwg Fetch spec.
See ¶6.4 Response class definition in whatwg Fetch spec.
- Annotations
- @JSType()
-
sealed
trait
ResponseType extends Any
- Annotations
- @JSType() @native()
-
type
Sequence[T] = Array[T]
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
-
class
URL extends Object
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
- Annotations
- @JSType() @native() @JSGlobal()
-
class
URLSearchParams extends Object with Iterable[Tuple2[String, String]]
The URLSearchParams defines utility methods to work with the query string of a URL.
The URLSearchParams defines utility methods to work with the query string of a URL.
MDN
- Annotations
- @JSType() @native() @JSGlobal()
-
sealed
trait
WriteableState extends Any
¶4.2.4.3. get state of whatwg streams spec
¶4.2.4.3. get state of whatwg streams spec
- Annotations
- @JSType() @native()
-
trait
WriteableStream[-T] extends Object
¶4.2. Class WritableStream of whatwg Stream spec
¶4.2. Class WritableStream of whatwg Stream spec
todo: the constructor
- T
Type of the Chunks to be written to the Stream
- Annotations
- @JSType() @native()
Value Members
-
object
Fetch extends Object
- Annotations
- @native() @JSGlobalScope()
-
object
Fullscreen
Full Screen API
Full Screen API
- object HttpMethod
-
object
Notification extends Object
Implicit imports for the notification api.
Implicit imports for the notification api.
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API
- Annotations
- @native() @JSGlobal()
- object NotificationOptions
-
object
PointerLock
Pointer Lock API
Pointer Lock API
- object ReferrerPolicy
- object RequestCache
- object RequestCredentials
- object RequestDestination
- object RequestMode
- object RequestRedirect
- object RequestType
-
object
Response extends Object
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.
- Annotations
- @native() @JSGlobal()
- object ResponseInit
-
object
ResponseType
see https://fetch.spec.whatwg.org/#responsetype of whatwg Fetch spec
-
object
Vibration
Implicit imports for the vibration api.
Implicit imports for the vibration api.
http://www.w3.org/TR/2015/REC-vibration-20150210/
- object WriteableState