FetchResponse

final case class FetchResponse[A](ok: Boolean, status: Int, statusText: ByteString, headers: Headers, `type`: ResponseType, data: A, url: String)
Type Params
A

type of the extracted data (String, js.Any for json, dom.Blob, etc)

Value Params
`type`

Contains the type of the response.

data

Contains the extracted response data (string, json, blob, etc)

headers

Contains the Headers object associated with the response.

ok

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

status

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

statusText

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

url

Contains the URL of the response.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def map[B](project: A => B): FetchResponse[B]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product