Packages

class Response extends Object with Body

¶6.4 Response class in whatwg spec

Annotations
@JSType() @native() @JSGlobal()
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)

    content

    optional content

    init

    optional response initialisiton

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]

    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
    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. val body: ReadableStream[Uint8Array]
  8. 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
  9. def clone(): Response
    Definition Classes
    Response → AnyRef
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. 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
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. val headers: Headers

    Contains the Headers object associated with the response.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  20. 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
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def ok: Boolean

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

  25. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  26. val status: Int

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

  27. def statusText: ByteString

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

  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. 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
  30. def toLocaleString(): String
    Definition Classes
    Object
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def type: ResponseType

    Contains the type of the response

  33. def url: String

    Contains the URL of the response.

  34. def valueOf(): Any
    Definition Classes
    Object
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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