FetchOptions

org.http4s.dom.FetchOptions
See theFetchOptions companion object
sealed abstract class FetchOptions extends Product with Serializable

Options to pass to Fetch when using a FetchClient

Attributes

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.

Companion:
object
Source:
FetchOptions.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def cache: Option[RequestCache]

Attributes

Source:
FetchOptions.scala
def credentials: Option[RequestCredentials]

Attributes

Source:
FetchOptions.scala
def mode: Option[RequestMode]

Attributes

Source:
FetchOptions.scala
def redirect: Option[RequestRedirect]

Attributes

Source:
FetchOptions.scala
def referrerPolicy: Option[ReferrerPolicy]

Attributes

Source:
FetchOptions.scala
def withCacheOption(cache: Option[RequestCache]): FetchOptions

Attributes

Source:
FetchOptions.scala
def withCredentialsOption(credentials: Option[RequestCredentials]): FetchOptions

Attributes

Source:
FetchOptions.scala
def withModeOption(mode: Option[RequestMode]): FetchOptions

Attributes

Source:
FetchOptions.scala
def withRedirectOption(redirect: Option[RequestRedirect]): FetchOptions

Attributes

Source:
FetchOptions.scala
def withReferrerPolicyOption(referrerPolicy: Option[ReferrerPolicy]): FetchOptions

Attributes

Source:
FetchOptions.scala

Concrete methods

final def merge(other: FetchOptions): FetchOptions

Merge Two FetchOptions. other is prioritized.

Merge Two FetchOptions. other is prioritized.

Attributes

Source:
FetchOptions.scala
final def withCache(cache: RequestCache): FetchOptions

Attributes

Source:
FetchOptions.scala
final def withCredentials(credentials: RequestCredentials): FetchOptions

Attributes

Source:
FetchOptions.scala
final def withIntegrity(integrity: String): FetchOptions

Attributes

Source:
FetchOptions.scala
final def withKeepAlive(keepAlive: Boolean): FetchOptions

Attributes

Source:
FetchOptions.scala
final def withMode(mode: RequestMode): FetchOptions

Attributes

Source:
FetchOptions.scala
final def withRedirect(redirect: RequestRedirect): FetchOptions

Attributes

Source:
FetchOptions.scala

Attributes

Source:
FetchOptions.scala
final def withReferrerPolicy(referrerPolicy: ReferrerPolicy): FetchOptions

Attributes

Source:
FetchOptions.scala

Attributes

Source:
FetchOptions.scala

Attributes

Source:
FetchOptions.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product