io.laminext.fetch
package io.laminext.fetch
Members list
Packages
package io.laminext.fetch.ops
Type members
Classlikes
final case class FetchError(cause: Throwable) extends FetchException
Attributes
- Supertypes
-
trait Producttrait Equalsclass FetchExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
object FetchEventStream
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FetchEventStream.type
final class FetchEventStreamBuilder(var _url: ToRequestUrl, var _method: HttpMethod, var _headers: UndefOr[Map[String, String]], var _body: ToRequestBody, var _referrer: UndefOr[String], var _referrerPolicy: UndefOr[ReferrerPolicy], var _mode: UndefOr[RequestMode], var _credentials: UndefOr[RequestCredentials], var _cache: UndefOr[RequestCache], var _redirect: UndefOr[RequestRedirect], var _integrity: UndefOr[String], var _keepalive: UndefOr[Boolean], var _timeout: UndefOr[FiniteDuration])
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
sealed abstract class FetchException(message: String) extends RuntimeException
Attributes
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait FetchSyntax
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
final case class FetchTimeout(timeout: FiniteDuration) extends FetchException
Attributes
- Supertypes
-
trait Producttrait Equalsclass FetchExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
trait ReExports
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
case class RequestUrl extends ToRequestUrl
Value parameters
- host
-
hostname, optionally with port
- params
-
a Map of query search parameters
- protocol
-
http or https
- segments
-
a Seq of path segments
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ToRequestUrlclass Objecttrait Matchableclass AnyShow all
object RequestUrl
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
RequestUrl.type
final case class ResponseError(cause: Throwable, response: Response) extends FetchException
Attributes
- Supertypes
-
trait Producttrait Equalsclass FetchExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
trait ToRequestBody
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
object ToRequestBody
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ToRequestBody.type
trait ToRequestUrl
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class RequestUrl
object ToRequestUrl
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ToRequestUrl.type
Value members
Inherited methods
Attributes
- Inherited from:
- FetchSyntax
Implicits
Inherited implicits
implicit def syntaxEventStreamOfFetchResponse[A](underlying: EventStream[FetchResponse[A]]): EventStreamOfFetchResponseOps[A]
Attributes
- Inherited from:
- FetchSyntax
implicit def syntaxEventStreamOfFetchResponseOfEither[L, R](underlying: EventStream[FetchResponse[Either[L, R]]]): EventStreamOfFetchResponseOfEitherOps[L, R]
Attributes
- Inherited from:
- FetchSyntax
implicit def syntaxFetchEventStreamBuilder(underlying: FetchEventStreamBuilder): FetchEventStreamBuilderOps
Attributes
- Inherited from:
- FetchSyntax
In this article