Trait tower_http::validate_request::ValidateRequest
source · pub trait ValidateRequest<B> {
type ResponseBody;
// Required method
fn validate(
&mut self,
request: &mut Request<B>,
) -> Result<(), Response<Self::ResponseBody>>;
}
Expand description
Trait for validating requests.
Required Associated Types§
sourcetype ResponseBody
type ResponseBody
The body type used for responses to unvalidated requests.