sttp.client3.listener

Type members

Classlikes

class ListenerBackend[F[_], P, L](delegate: SttpBackend[F, P], listener: RequestListener[F, L]) extends DelegateSttpBackend[F, P]

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

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

Companion
object
Companion
class
trait RequestListener[F[_], L]

A listener to be used by the ListenerBackend to get notified on request lifecycle events.

A listener to be used by the ListenerBackend to get notified on request lifecycle events.

Type Params
L

Type of a value ("tag") that is associated with a request, and passed the response (or exception) is available. Use Unit if no special value should be associated with a request.

Companion
object
Companion
class