Packages

package http

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. trait HttpOperationPolicies extends AnyRef

    Service to get a HttpOperationPolicy for a given host

  2. final case class HttpOperationPolicy(maxParallelRequestCount: Int, hostOverride: Option[String], retryPolicies: List[HttpRetryPolicy], circuitBreakerPolicy: Option[RetryPolicy], timeout: zio.Duration) extends Product with Serializable

    Specifies the behavior for calling operations on a given host

    Specifies the behavior for calling operations on a given host

    maxParallelRequestCount

    The maximum number of parallel requests to this host

    hostOverride

    Overrides the host with a custom one

    retryPolicies

    Retry policies for different failure conditions

    circuitBreakerPolicy

    Circuit breaker reset policy. If none, no circuit breaker will be used

    timeout

    Timeout for the requests

  3. sealed trait HttpRetryCondition extends AnyRef

    HTTP operation failure conditions

  4. final case class HttpRetryPolicy(condition: HttpRetryCondition, policy: RetryPolicy, breakCircuit: Boolean) extends Product with Serializable

    Specifies a retry policy for a given HTTP operation failure

    Specifies a retry policy for a given HTTP operation failure

    condition

    The condition the failure must match

    policy

    Retry policy for these failures

    breakCircuit

    If true, these failures will be reported to the circuit breaker

  5. sealed trait Repetition extends AnyRef

    Specifies how to retry an operation

  6. sealed trait RetryLimit extends AnyRef

    Specifies what's the limit of the retry policy

  7. final case class RetryPolicy(failAfter: RetryLimit, repeatWith: Repetition, jitter: Boolean) extends Product with Serializable

    Retry policy for an operation

    Retry policy for an operation

    failAfter

    When to stop trying

    repeatWith

    What to do before retrying

    jitter

    Enables jittering the time delays between retries

Ungrouped