pub trait PreBodyValidator: Send + Sync {
// Required method
fn validate(&self, request: &Request) -> Result<(), Response>;
// Provided method
fn name(&self) -> &'static str { ... }
}Expand description
Trait for pre-body validation hooks.
Implement this trait to add custom validation that runs before sending 100 Continue and reading the request body.