org.http4s.dom

package org.http4s.dom

Members list

Type members

Classlikes

sealed abstract class FetchClientBuilder[F[_]]

Configure and obtain a FetchClient

Configure and obtain a FetchClient

Value parameters

cache

how the request will interact with the browser’s HTTP cache

credentials

what browsers do with credentials (cookies, HTTP authentication entries, and TLS client certificates)

mode

mode you want to use for the request, e.g., cors, no-cors, or same-origin

redirect

how to handle a redirect response

referrer

referrer of the request

referrerPolicy

referrer policy to use for the request

requestTimeout

maximum duration from the submission of a request through reading the body before a timeout.

Attributes

Companion
object
Source
FetchClientBuilder.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
FetchClientBuilder.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class FetchEventContext[F[_]]

Attributes

Companion
object
Source
FetchEventContext.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
FetchEventContext.scala
Supertypes
class Object
trait Matchable
class Any
Self type
sealed abstract class FetchOptions extends Product, Serializable

Options to pass to Fetch when using a FetchClient

Options to pass to Fetch when using a FetchClient

Value parameters

cache

how the request will interact with the browser’s HTTP cache

credentials

what browsers do with credentials (cookies, HTTP authentication entries, and TLS client certificates)

integrity

subresource integrity value of the request

keepAlive

used to allow the request to outlive the page

mode

mode you want to use for the request, e.g., cors, no-cors, or same-origin

redirect

how to handle a redirect response

referrer

referrer of the request, this can be a same-origin URL, about:client, or an empty string.

referrerPolicy

referrer policy to use for the request

requestTimeout

maximum duration from the submission of a request through reading the body before a timeout.

Attributes

Companion
object
Source
FetchOptions.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object FetchOptions

Attributes

Companion
class
Source
FetchOptions.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed abstract class FetchReferrer extends Renderable

Fetch's RequestInit.referrer parameter can be one of:

Fetch's RequestInit.referrer parameter can be one of:

  • Same-origin URL

  • "about:client"

  • the empty string

To ensure same-origin URLs, we only allow relative URLs in the form of Uri.Path.

See https://fetch.spec.whatwg.org/#ref-for-dom-request-referrer%E2%91%A0

Attributes

Companion
object
Source
FetchReferrer.scala
Supertypes
trait Renderable
class Object
trait Matchable
class Any
Known subtypes
object Client.type
object NoReferrer.type
class Path
object FetchReferrer

Attributes

Companion
class
Source
FetchReferrer.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
object ServiceWorker

Attributes

Source
ServiceWorker.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
WebSocketClient.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Implicits

Implicits

implicit def blobEncoder[F[_]](implicit F: Async[F]): EntityEncoder[F, Blob]

Attributes

Source
package.scala
implicit def fileEncoder[F[_]](implicit F: Async[F]): EntityEncoder[F, File]

Attributes

Source
package.scala
implicit def readableStreamEncoder[F[_] : Async]: EntityEncoder[F, ReadableStream[Uint8Array]]

Attributes

Source
package.scala