Module tower_http::classify
source · Expand description
Tools for classifying responses as either success or failure.
Structs
Response classifier for gRPC responses.
Response classifier that transforms the failure class of some other
classifier.
A
ClassifyEos
type that can be used in ClassifyResponse
implementations that never have
to classify streaming responses.The default classifier used for normal HTTP responses.
A
MakeClassifier
that produces new classifiers by cloning an inner classifier.Response classifier that considers responses with a status code within some range to be
failures.
Enums
Result of doing a classification.
gRPC status codes. Used in
GrpcErrorsAsFailures::success_codes
.The failure class for
GrpcErrorsAsFailures
.The failure class for
ServerErrorsAsFailures
.The failure class for
StatusInRangeAsFailures
.Traits
Trait for classifying end of streams (EOS) as either success or failure.
Trait for classifying responses as either success or failure. Designed to support both unary
requests (single request for a single response) as well as streaming responses.
Trait for producing response classifiers from a request.