FetchZioBackend

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.

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

Type members

Types

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

Inherited types

type PE = P & Effect[F] & WebSockets
Inherited from:
AbstractFetchBackend

Value members

Inherited methods

override def close(): F[Unit]
Definition Classes
AbstractFetchBackend -> SttpBackend
Inherited from:
AbstractFetchBackend
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]).

Definition Classes
AbstractFetchBackend -> SttpBackend
Inherited from:
AbstractFetchBackend

Concrete fields

override val streams: ZioStreams

Implicits

Implicits

implicit override def convertFromFuture: ConvertFromFuture[Task]
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.

Definition Classes
AbstractFetchBackend -> SttpBackend
Inherited from:
AbstractFetchBackend