Packages

p

org.scalajs.dom

experimental

package experimental

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. experimental
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. 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()
  2. 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()
  3. 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()
  4. type BodyInit = |[|[|[Blob, BufferSource], FormData], String]

    defined at ¶6.2 Body mixin in whatwg Fetch spec

  5. type ByteString = String

    This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type?

  6. 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()
  7. 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()
  8. type HeadersInit = |[|[Headers, Sequence[Sequence[ByteString]]], OpenEndedDictionary[ByteString]]

    defined at ¶6.1 Header Class in whatwg Fetch spec todo: it should be OpenEndedDictionary[ByteString]

  9. 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()
  10. 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()
  11. trait NotificationOptions extends Object
    Annotations
    @JSType() @native()
  12. 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

  13. 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()
  14. 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()
  15. 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()
  16. sealed trait ReferrerPolicy extends Any
    Annotations
    @JSType() @native()
  17. 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()
  18. sealed trait RequestCache extends Any

    Fetch APIs RequestCache enum

    Fetch APIs RequestCache enum

    Annotations
    @JSType() @native()
  19. sealed trait RequestCredentials extends Any

    Fetch APIs RequestCredentials enum

    Annotations
    @JSType() @native()
  20. sealed trait RequestDestination extends Any

    Fetch APIs RequestDestination enum

    Annotations
    @JSType() @native()
  21. type RequestInfo = |[String, Request]

    defined at ¶6.3 Request class of whatwg Fetch spec

  22. 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()
  23. sealed trait RequestMode extends Any

    Fetch API's RequestMode enum

    Fetch API's RequestMode enum

    Annotations
    @JSType() @native()
  24. sealed trait RequestRedirect extends Any

    Fetch API's RequestRedirect enum

    Annotations
    @JSType() @native()
  25. sealed trait RequestType extends Any

    Fetch APIs RequestType enum

    Fetch APIs RequestType enum

    Annotations
    @JSType() @native()
  26. class Response extends Object with Body

    ¶6.4 Response class in whatwg spec

    ¶6.4 Response class in whatwg spec

    Annotations
    @JSType() @native() @JSGlobal()
  27. 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()
  28. sealed trait ResponseType extends Any
    Annotations
    @JSType() @native()
  29. 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

  30. 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()
  31. 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()
  32. 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()
  33. 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

  1. object Fetch extends Object
    Annotations
    @native() @JSGlobalScope()
  2. object Fullscreen

    Full Screen API

  3. object HttpMethod
  4. 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()
  5. object NotificationOptions
  6. object PointerLock

    Pointer Lock API

  7. object ReferrerPolicy
  8. object RequestCache
  9. object RequestCredentials
  10. object RequestDestination
  11. object RequestMode
  12. object RequestRedirect
  13. object RequestType
  14. 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()
  15. object ResponseInit
  16. object ResponseType

    see https://fetch.spec.whatwg.org/#responsetype of whatwg Fetch spec

  17. object Vibration

    Implicit imports for the vibration api.

    Implicit imports for the vibration api.

    http://www.w3.org/TR/2015/REC-vibration-20150210/

  18. object WriteableState

Inherited from AnyRef

Inherited from Any

Ungrouped