org.scalajs.dom.experimental

Response

class Response extends Object with Body

¶6.4 Response class in whatwg spec

Annotations
@RawJSType() @native()
Linear Supertypes
Body, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Response
  2. Body
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Response(content: BodyInit = null, init: ResponseInit = null)

    content

    optional content

    init

    optional response initialisiton

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def arrayBuffer(): Promise[ArrayBuffer]

    MDN: Takes a Response stream and reads it to completion.

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

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

    Definition Classes
    Any
  8. 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
  9. val body: ReadableStream[Uint8Array]

  10. def bodyUsed: Boolean

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

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

    Definition Classes
    Body
  11. def clone(): Response

    Definition Classes
    Response → AnyRef
  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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formData(): Promise[raw.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
  17. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. val headers: Headers

    Contains the Headers object associated with the response.

  20. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    Object
  22. 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
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def ok: Boolean

    Contains a boolean stating whether the response was successful (status in the range 200-299) or not.

  27. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  28. val status: Int

    Contains the status code of the response (e.

    Contains the status code of the response (e.g., 200 for a success).

  29. def statusText: ByteString

    Contains the status message corresponding to the status code (e.

    Contains the status message corresponding to the status code (e.g., OK for 200).

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

    Definition Classes
    AnyRef
  31. 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
  32. def toLocaleString(): String

    Definition Classes
    Object
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def type: ResponseType

    Contains the type of the response

  35. def url: String

    Contains the URL of the response.

  36. def valueOf(): Any

    Definition Classes
    Object
  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Body

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped