ListenerBackend

sttp.client4.listener.ListenerBackend
See theListenerBackend companion object
abstract class ListenerBackend[F[_], P, L](delegate: GenericBackend[F, P], listener: RequestListener[F, L]) extends DelegateBackend[F, P]

A backend wrapper which notifies the given RequestListener when a request starts and completes.

Attributes

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

Members list

Value members

Concrete methods

override def send[T](request: GenericRequest[T, P & Effect[F]]): 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

Inherited 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
Inherited from:
DelegateBackend

Implicits

Inherited implicits

implicit override def monad: MonadError[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

Definition Classes
Inherited from:
DelegateBackend