RetryingBackend

class RetryingBackend[F[_], +P](delegate: SttpBackend[F, P], maxRetries: Int, initialRetryDelay: FiniteDuration, maxRetryDelay: FiniteDuration)(implicit temporal: Temporal[F]) extends SttpBackend[F, P]
trait SttpBackend[F, P]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def close(): F[Unit]
Definition Classes
SttpBackend
override 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.

Definition Classes
SttpBackend
override 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]).

Definition Classes
SttpBackend
def sendWithRetryCounter[T, R >: P & Effect[F]](request: Request[T, R], retriesRemaining: Int, initialDelay: FiniteDuration): F[Response[T]]