Module Values.HttpRetryPolicySource

An object that represents a retry policy. Specify at least one value for at least one of the types of RetryEvents, a value for maxRetries, and a value for perRetryTimeout. Both server-error and gateway-error under httpRetryEvents include the Envoy reset policy. For more information on the reset policy, see the Envoy documentation.

Sourcetype nonrec t = {
  1. httpRetryEvents : HttpRetryPolicyEvents.t option;
    (*

    Specify at least one of the following values. server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511 gateway-error – HTTP status codes 502, 503, and 504 client-error – HTTP status code 409 stream-error – Retry on refused stream

    *)
  2. maxRetries : MaxRetries.t;
    (*

    The maximum number of retry attempts.

    *)
  3. perRetryTimeout : Duration.t;
    (*

    The timeout for each retry attempt.

    *)
  4. tcpRetryEvents : TcpRetryPolicyEvents.t option;
    (*

    Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.

    *)
}
Sourceval context_ : string
Sourceval make : ?httpRetryEvents:??? -> ?tcpRetryEvents:??? -> maxRetries:MaxRetries.t -> perRetryTimeout:Duration.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Enum of string | `String of HttpRetryPolicyEvent.t ] list | `Long of MaxRetries.t | `Structure of (string * [> `Enum of string | `Long of DurationValue.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t