package experimental
- Alphabetic
- By Inheritance
- experimental
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Body
extends Object
See body interface in whatwg Fetch spec.
See body interface in whatwg Fetch spec.
see also Body in MDN
- Annotations
- @RawJSType() @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
- @RawJSType() @native()
-
class
Headers
extends Object with JSIterable[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
- @RawJSType() @native()
-
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
- @RawJSType() @native()
-
class
Notification
extends Object with 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
- @RawJSType() @JSName( "Notification" ) @native()
-
trait
NotificationOptions
extends Object
- Annotations
- @RawJSType() @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
- @RawJSType() @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
- @RawJSType() @native()
-
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
- @RawJSType() @native()
-
sealed
trait
ReferrerPolicy
extends Any
- Annotations
- @RawJSType() @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
- @RawJSType() @native()
-
sealed
trait
RequestCache
extends Any
Fetch APIs RequestCache enum
Fetch APIs RequestCache enum
- Annotations
- @RawJSType() @native()
-
sealed
trait
RequestCredentials
extends Any
Fetch APIs RequestCredentials enum
Fetch APIs RequestCredentials enum
- Annotations
- @RawJSType() @native()
-
sealed
trait
RequestDestination
extends Any
Fetch APIs RequestDestination enum
Fetch APIs RequestDestination enum
- Annotations
- @RawJSType() @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
- @RawJSType() @ScalaJSDefined()
-
sealed
trait
RequestMode
extends Any
Fetch API's RequestMode enum
Fetch API's RequestMode enum
- Annotations
- @RawJSType() @native()
-
sealed
trait
RequestRedirect
extends Any
Fetch API's RequestRedirect enum
Fetch API's RequestRedirect enum
- Annotations
- @RawJSType() @native()
-
sealed
trait
RequestType
extends Any
Fetch APIs RequestType enum
Fetch APIs RequestType enum
- Annotations
- @RawJSType() @native()
-
class
Response
extends Object with Body
¶6.4 Response class in whatwg spec
¶6.4 Response class in whatwg spec
- Annotations
- @RawJSType() @native()
-
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
- @RawJSType() @ScalaJSDefined()
-
sealed
trait
ResponseType
extends Any
- Annotations
- @RawJSType() @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
- @RawJSType() @native()
-
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
- @RawJSType() @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
- @RawJSType() @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()
- object NotificationOptions
-
object
PointerLock
Pointer Lock API
Pointer Lock API
- object ReferrerPolicy
- object RequestCache
- object RequestCredentials
- object RequestDestination
- object RequestInit
- 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()
- 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