AsyncHttpClientBackend

sttp.client4.asynchttpclient.AsyncHttpClientBackend
See theAsyncHttpClientBackend companion object
abstract class AsyncHttpClientBackend[F[_], S <: Streams[S], P](asyncHttpClient: AsyncHttpClient, val monad: MonadAsyncError[F], closeClient: Boolean, customizeRequest: BoundRequestBuilder => BoundRequestBuilder) extends GenericBackend[F, P], Backend[F]

Attributes

Companion
object
Graph
Supertypes
trait Backend[F]
trait GenericBackend[F, P]
class Object
trait Matchable
class Any

Members list

Type members

Types

type R = P & Effect[F]

Value members

Concrete methods

override def close(): F[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
GenericBackend
override def send[T](r: GenericRequest[T, R]): F[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
GenericBackend

Abstract fields

val streams: Streams[S]

Implicits

Implicits

implicit override val monad: MonadAsyncError[F]

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