hyper-middleware 0.0.9

A compact HTTP middleware and handler system for Hyper 0.14
Documentation
1
2
3
4
5
6
7
8
9
10
//! Set of HTTP types aliases for convenience.

/// A [`hyper::Body`] type alias.
pub type Body = hyper::Body;

/// A [`hyper::Request<Body>`] type alias with defaults.
pub type Request<T = Body> = hyper::Request<T>;

/// A [`hyper::Response<Body>`] type alias with defaults.
pub type Response<T = Body> = hyper::Response<T>;