FetchMonixBackend

sttp.client4.impl.monix.FetchMonixBackend
See theFetchMonixBackend companion object
class FetchMonixBackend extends AbstractFetchBackend[Task, MonixStreams], WebSocketStreamBackend[Task, MonixStreams]

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
trait WebSocketStreamBackend[Task, MonixStreams]
trait StreamBackend[Task, MonixStreams]
class AbstractFetchBackend[Task, MonixStreams]
trait WebSocketBackend[Task]
trait Backend[Task]
trait GenericBackend[Task, MonixStreams & WebSockets]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type R = MonixStreams & WebSockets & Effect[Task]

Attributes

Inherited from:
AbstractFetchBackend

Value members

Inherited methods

override def close(): Task[Unit]

Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

Close the backend, releasing any resources (such as thread or connection pools) that have been allocated when opening or using the backend.

Attributes

Definition Classes
AbstractFetchBackend -> GenericBackend
Inherited from:
AbstractFetchBackend
override def send[T](request: GenericRequest[T, R]): Task[Response[T]]

Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

Send the given request. Should only be used when implementing new backends, or backend wrappers. Client code should instead use the send methods on the request type, e.g. Request.send.

Attributes

Definition Classes
AbstractFetchBackend -> GenericBackend
Inherited from:
AbstractFetchBackend

Concrete fields

override val streams: MonixStreams

Implicits

Implicits

implicit override def convertFromFuture: ConvertFromFuture[Task]

Attributes

Definition Classes
AbstractFetchBackend

Inherited implicits

implicit override def monad: MonadError[Task]

A monad instance for the F effect type. Allows writing wrapper backends, which map/`flatMap`` over the return value of send.

A monad instance for the F effect type. Allows writing wrapper backends, which map/`flatMap`` over the return value of send.

Attributes

Definition Classes
AbstractFetchBackend -> GenericBackend
Inherited from:
AbstractFetchBackend