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.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".