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

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.

Type Definitions

A hyper::Body type alias.
An anyhow::Error type alias.
A hyper::Request<Body> type alias.
A hyper::Response<Body> type alias.
An anyhow::Result type alias.