FetchZioBackend

sttp.client3.impl.zio.FetchZioBackend
See theFetchZioBackend companion object
class FetchZioBackend extends AbstractFetchBackend[Task, ZioStreams, ZioStreams & WebSockets]

Uses the ReadableStream interface from the Streams API.

Streams are behind a flag on Firefox.

Note that no browsers support a stream request body so it is converted into an in memory array first.

Attributes

See also:
Companion:
object
Graph
Supertypes
class AbstractFetchBackend[Task, ZioStreams, ZioStreams & WebSockets]
trait SttpBackend[Task, ZioStreams & WebSockets]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

type Observable[+A] = ZStream[Any, Throwable, A]

Inherited types

type PE = P & Effect[F] & WebSockets

Attributes

Inherited from:
AbstractFetchBackend

Value members

Inherited methods

override def close(): F[Unit]

Attributes

Definition Classes
AbstractFetchBackend -> SttpBackend
Inherited from:
AbstractFetchBackend
override def send[T, R >: PE](request: Request[T, R]): F[Response[T]]

Attributes

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]).

Definition Classes
AbstractFetchBackend -> SttpBackend
Inherited from:
AbstractFetchBackend

Concrete fields

override val streams: ZioStreams

Implicits

Implicits

implicit override def convertFromFuture: ConvertFromFuture[Task]

Attributes

Definition Classes
AbstractFetchBackend

Inherited 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
AbstractFetchBackend -> SttpBackend
Inherited from:
AbstractFetchBackend