FetchResponse

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

Attributes

A

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

`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.

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

Members list

Concise view

Value members

Concrete methods

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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product