pub async fn validate<Validator>(
    validator: Validator,
    req: Request<Body>
) -> Result<Request<Body>, Error<Validator::Error>>where
    Validator: Validator<Bytes>,
Expand description

Validate the hyper::Request.