rest_api/api_http_server/
middleware.rs

1type Request = hyper::Request<hyper::Body>;
2type Response = hyper::Response<hyper::Body>;
3
4pub trait Middleware {
5    fn process_request(&self, request: &mut Request);
6    fn process_response(&self, reponse: &mut Response);
7}