FetchResponse
io.laminext.fetch.FetchResponse
final case class FetchResponse[A](ok: Boolean, status: Int, statusText: ByteString, headers: Headers, `type`: ResponseType, data: A, url: String)
Type parameters
- A
-
type of the extracted data (String, js.Any for json, dom.Blob, etc)
Value parameters
- `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.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article