Skip to main content

Module classifiers

Module classifiers 

Source
Available on crate feature client only.
Expand description

Smithy retry classifiers.

Structs§

HttpStatusCodeClassifier
A retry classifier that will treat HTTP response with those status codes as retryable. The Default version will retry 500, 502, 503, and 504 errors.
ModeledAsRetryableClassifier
A retry classifier for checking if an error is modeled as retryable.
TransientErrorClassifier
Classifies response, timeout, and connector errors as retryable or not.

Functions§

run_classifiers_on_ctx
Given an iterator of retry classifiers and an interceptor context, run retry classifiers on the context. Each classifier is passed the RetryAction accumulated by the previously-run classifiers (the first classifier is passed RetryAction::NoActionIndicated) via ClassifyRetry::classify_retry_v2, so a later classifier may refine an earlier verdict.