Packages

c

org.scalajs.dom

Request

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)

    input

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

    init

    initialisation information

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def arrayBuffer(): Promise[ArrayBuffer]

    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
    Definition Classes
    Any
  6. def blob(): Promise[Blob]

    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

    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
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def credentials: RequestCredentials
  11. def destination: RequestDestination
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formData(): Promise[FormData]

    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[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def headers: Headers

    Contains the associated Headers object of the request.

  20. def integrity: String
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  23. def json(): Promise[Any]

    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
  25. def mediaType: RequestType
    Annotations
    @JSName( "type" )
  26. def method: HttpMethod

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

  27. def mode: RequestMode
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  32. def redirect: RequestRedirect
  33. def referrer: String
  34. def referrerPolicy: ReferrerPolicy
  35. def signal: AbortSignal
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def text(): Promise[String]

    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
    Definition Classes
    Object
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def url: String

    Contains the URL of the request.

  41. def valueOf(): Any
    Definition Classes
    Object
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Body

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped