easy-rest-api 0.1.0

A simple library for creating a HTTP API with minimal setup.
Documentation
1
2
3
4
5
6
7
type Request = hyper::Request<hyper::Body>;
type Response = hyper::Response<hyper::Body>;

pub trait Middleware {
    fn process_request(&self, request: &mut Request);
    fn process_response(&self, reponse: &mut Response);
}