AbstractFetchBackend

sttp.client3.AbstractFetchBackend
abstract class AbstractFetchBackend[F[_], S <: Streams[S], P](options: FetchOptions, customizeRequest: Request => Request, monad: MonadError[F]) extends SttpBackend[F, P]

A backend that uses the fetch JavaScript api.

Attributes

See also
Graph
Supertypes
trait SttpBackend[F, P]
class Object
trait Matchable
class Any
Known subtypes
class FetchBackend

Members list

Type members

Types

type PE = P & Effect[F] & WebSockets

Value members

Abstract methods

protected def addCancelTimeoutHook[T](result: F[T], cancel: () => Unit): F[T]
protected def compileWebSocketPipe(ws: WebSocket[F], pipe: Pipe[Data[_], WebSocketFrame]): F[Unit]
protected def handleResponseAsStream(response: Response): F[(BinaryStream, () => F[Unit])]
protected def handleStreamBody(s: BinaryStream): F[UndefOr[BodyInit]]

Concrete methods

override def close(): F[Unit]

Attributes

Definition Classes
override def send[T, R >: PE](request: Request[T, R]): F[Response[T]]

Type parameters

R

The capabilities required by the request. This must be a subset of the the capabilities supported by the backend (which always includes Effect[F]).

Attributes

Definition Classes

Abstract fields

val streams: Streams[S]

Implicits

Implicits

implicit override def responseMonad: MonadError[F]

A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.

A monad instance for the effect type used when returning responses. Allows writing wrapper backends, which map/flatMap over the return value of send.

Attributes

Definition Classes