Crate hyper_middleware
source ·Expand description
hyper_middleware
hyper_middleware is a complement set of HTTP middlewares with a small Hyper Service to get started with a HTTP server easily.
This module only supports Hyper 0.14.x.
Features
- Compact Middleware and Handler System inspired by The Iron Framework.
- Simple Hyper Service with convenient Remote Address access.
- Convenient
ErrorandResulttypes powered by anyhow.
Structs
The middleware chain which can append other middlewares.
Hyper Service entry point which hosts a
Handler.Traits
AfterMiddleware are fired after a Handler is called inside of a Chain.AroundMiddleware are used to wrap and replace the Handler in a Chain.BeforeMiddleware are fired before a Handler is called inside of a Chain.Handlers are responsible for handling requests by creating Responses from Requests.