HttpClientBackend

sttp.client3.HttpClientBackend
See theHttpClientBackend companion object
abstract class HttpClientBackend[F[_], S, P, B](client: HttpClient, closeClient: Boolean, customEncodingHandler: EncodingHandler[B]) extends SttpBackend[F, P]

Value parameters

closeClient

If the executor underlying the client is a ThreadPoolExecutor, should it be shutdown on close.

Attributes

Companion
object
Graph
Supertypes
trait SttpBackend[F, P]
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type PE = P & Effect[F]

Value members

Concrete methods

override def close(): F[Unit]

Attributes

Definition Classes

Inherited methods

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

Inherited from:
SttpBackend
def send[T, R >: P & Effect[F]](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

Inherited from:
SttpBackend

Abstract fields

val streams: Streams[S]