FetchOptions

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

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Abstract methods

def cache: Option[RequestCache]

Attributes

Source
FetchOptions.scala
def credentials: Option[RequestCredentials]

Attributes

Source
FetchOptions.scala
def integrity: Option[String]

Attributes

Source
FetchOptions.scala
def keepAlive: Option[Boolean]

Attributes

Source
FetchOptions.scala
def mode: Option[RequestMode]

Attributes

Source
FetchOptions.scala
def redirect: Option[RequestRedirect]

Attributes

Source
FetchOptions.scala
def referrer: Option[FetchReferrer]

Attributes

Source
FetchOptions.scala
def referrerPolicy: Option[ReferrerPolicy]

Attributes

Source
FetchOptions.scala
def streamingRequests: Boolean

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 withIntegrityOption(integrity: Option[String]): FetchOptions

Attributes

Source
FetchOptions.scala
def withKeepAliveOption(keepAlive: Option[Boolean]): 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

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.

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
final def withReferrer(referrer: FetchReferrer): FetchOptions

Attributes

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

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Attributes

Source
FetchOptions.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

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

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product