Class/Object

org.scalajs.dom.experimental

Response

Related Docs: object Response | package experimental

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    content

    optional content

    init

    optional response initialisiton

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

    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
  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. val body: ReadableStream[Uint8Array]

    Permalink
  8. def bodyUsed: Boolean

    Permalink

    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
  9. def clone(): Response

    Permalink
    Definition Classes
    Response → AnyRef
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def formData(): Promise[raw.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
  14. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. val headers: Headers

    Permalink

    Contains the Headers object associated with the response.

  18. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def ok: Boolean

    Permalink

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

  25. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  26. val status: Int

    Permalink

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

  27. def statusText: ByteString

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  29. 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
  30. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. def type: ResponseType

    Permalink

    Contains the type of the response

  33. def url: String

    Permalink

    Contains the URL of the response.

  34. def valueOf(): Any

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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