OkHttpAsyncBackend

sttp.client3.okhttp.OkHttpAsyncBackend
abstract class OkHttpAsyncBackend[F[_], S <: Streams[S], P](client: OkHttpClient, monad: MonadAsyncError[F], closeClient: Boolean, customEncodingHandler: EncodingHandler) extends OkHttpBackend[F, S, P]

Attributes

Graph
Supertypes
class OkHttpBackend[F, S, P]
trait SttpBackend[F, P]
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Inherited types

type PE = P & Effect[F]

Attributes

Inherited from:
OkHttpBackend

Value members

Concrete methods

override protected def sendRegular[T, R >: PE](request: Request[T, R]): F[Response[T]]

Attributes

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

Attributes

Definition Classes

Inherited methods

override def close(): F[Unit]

Attributes

Definition Classes
OkHttpBackend -> SttpBackend
Inherited from:
OkHttpBackend
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
OkHttpBackend -> SttpBackend
Inherited from:
OkHttpBackend

Inherited fields

val streams: Streams[S]

Attributes

Inherited from:
OkHttpBackend

Implicits

Implicits

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