Trait rama::http::layer::validate_request::ValidateRequest
pub trait ValidateRequest<S, B>:
Send
+ Sync
+ 'static {
type ResponseBody;
// Required method
fn validate(
&self,
ctx: Context<S>,
request: Request<B>,
) -> impl Future<Output = Result<(Context<S>, Request<B>), Response<Self::ResponseBody>>> + Send;
}
Expand description
Trait for validating requests.
Required Associated Types§
type ResponseBody
type ResponseBody
The body type used for responses to unvalidated requests.
Required Methods§
Object Safety§
This trait is not object safe.