Class

org.scalajs.dom

Request

Related Doc: package dom

Permalink

class Request extends Object with Body

The Request interface of the Fetch API represents a resource request.

see ¶6.3 Request Class in whatwg spec

Annotations
@JSType() @native() @JSGlobal()
Linear Supertypes
Body, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. Body
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Request(input: RequestInfo, init: RequestInit = null)

    Permalink

    input

    the url of the requested resource or an unused Request object.

    init

    initialisation information

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def arrayBuffer(): Promise[ArrayBuffer]

    Permalink

    Takes a Response stream and reads it to completion.

    Takes a Response stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer.

    Definition Classes
    Body
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def blob(): Promise[Blob]

    Permalink

    Takes a Response stream and reads it to completion.

    Takes a Response stream and reads it to completion. It returns a promise that resolves with a Blob.

    Definition Classes
    Body
  7. def bodyUsed: Boolean

    Permalink

    Contains a Boolean that indicates whether the body has been read.

    Contains a Boolean that indicates whether the body has been read.

    Definition Classes
    Body
  8. def cache: RequestCache

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def credentials: RequestCredentials

    Permalink
  11. def destination: RequestDestination

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formData(): Promise[FormData]

    Permalink

    Takes a Response stream and reads it to completion.

    Takes a Response stream and reads it to completion. It returns a promise that resolves with a FormData object.

    Definition Classes
    Body
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def headers: Headers

    Permalink

    Contains the associated Headers object of the request.

  20. def integrity: String

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  23. def json(): Promise[Any]

    Permalink

    Takes a Response stream and reads it to completion.

    Takes a Response stream and reads it to completion. It returns a promise that resolves with a JSON object. //todo: define the JSON type, and return a Promise[JSON] as per spec

    Definition Classes
    Body
  24. def keepalive: Boolean

    Permalink
  25. def mediaType: RequestType

    Permalink
    Annotations
    @JSName( "type" )
  26. def method: HttpMethod

    Permalink

    Contains the request's method (GET, POST, etc.)

  27. def mode: RequestMode

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. def redirect: RequestRedirect

    Permalink
  33. def referrer: String

    Permalink
  34. def referrerPolicy: ReferrerPolicy

    Permalink
  35. def signal: AbortSignal

    Permalink
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def text(): Promise[String]

    Permalink

    Takes a Response stream and reads it to completion.

    Takes a Response stream and reads it to completion. It returns a promise that resolves with a USVString (text).

    Definition Classes
    Body
  38. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. def url: String

    Permalink

    Contains the URL of the request.

  41. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Body

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped