Values.HttpRetryPolicySourceAn 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.
type nonrec t = {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
*)maxRetries : MaxRetries.t;The maximum number of retry attempts.
*)perRetryTimeout : Duration.t;The timeout for each retry attempt.
*)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.
*)}val make :
?httpRetryEvents:??? ->
?tcpRetryEvents:??? ->
maxRetries:MaxRetries.t ->
perRetryTimeout:Duration.t ->
unit ->
tval 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 ]