OkHttpMonixBackend

sttp.client4.okhttp.monix.OkHttpMonixBackend
See theOkHttpMonixBackend companion object
class OkHttpMonixBackend extends OkHttpAsyncBackend[Task, MonixStreams, MonixStreams & WebSockets], WebSocketStreamBackend[Task, MonixStreams]

Attributes

Companion
object
Graph
Supertypes
trait WebSocketStreamBackend[Task, MonixStreams]
trait StreamBackend[Task, MonixStreams]
trait WebSocketBackend[Task]
class OkHttpAsyncBackend[Task, MonixStreams, MonixStreams & WebSockets]
class OkHttpBackend[Task, MonixStreams, MonixStreams & WebSockets]
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:
OkHttpBackend

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
OkHttpBackend -> GenericBackend
Inherited from:
OkHttpBackend
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
OkHttpBackend -> GenericBackend
Inherited from:
OkHttpBackend
override protected def sendRegular[T](request: GenericRequest[T, R]): Task[Response[T]]

Attributes

Definition Classes
OkHttpAsyncBackend -> OkHttpBackend
Inherited from:
OkHttpAsyncBackend
override protected def sendWebSocket[T](request: GenericRequest[T, R]): Task[Response[T]]

Attributes

Definition Classes
OkHttpAsyncBackend -> OkHttpBackend
Inherited from:
OkHttpAsyncBackend

Concrete fields

override val streams: MonixStreams

Implicits

Inherited implicits

implicit override val monad: MonadAsyncError[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

Inherited from:
OkHttpAsyncBackend