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.

Features

Re-exports

pub use error::*;
pub use middleware::*;
pub use remote_addr::*;
pub use service::*;
pub use types::*;

Modules

Custom HTTP Error module.
The middleware and handler system module.
Module representing the remote (peer) address of a connection.
The Hyper service module.
Set of types aliases for convenience.

Macros

Construct an Error with StatusCode::BAD_GATEWAY from a string or existing non-anyhow error value.
Construct an Error with StatusCode::BAD_REQUEST from a string or existing non-anyhow error value.
Construct an Error with StatusCode::CONFLICT from a string or existing non-anyhow error value.
Construct an Error with StatusCode::EXPECTATION_FAILED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::FORBIDDEN from a string or existing non-anyhow error value.
Construct an Error with StatusCode::GATEWAY_TIMEOUT from a string or existing non-anyhow error value.
Construct an Error with StatusCode::GONE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::HTTP_VERSION_NOT_SUPPORTED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::INSUFFICIENT_STORAGE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::INTERNAL_SERVER_ERROR from a string or existing non-anyhow error value.
Construct an Error with StatusCode::LENGTH_REQUIRED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::LOOP_DETECTED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::METHOD_NOT_ALLOWED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::NOT_ACCEPTABLE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::NOT_FOUND from a string or existing non-anyhow error value.
Construct an Error with StatusCode::NOT_IMPLEMENTED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::PAYLOAD_TOO_LARGE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::PAYMENT_REQUIRED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::PRECONDITION_FAILED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::PROXY_AUTHENTICATION_REQUIRED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::RANGE_NOT_SATISFIABLE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::REQUEST_TIMEOUT from a string or existing non-anyhow error value.
Construct an Error with StatusCode::SERVICE_UNAVAILABLE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::UNAUTHORIZED from a string or existing non-anyhow error value.
Construct an Error with StatusCode::UNSUPPORTED_MEDIA_TYPE from a string or existing non-anyhow error value.
Construct an Error with StatusCode::URI_TOO_LONG from a string or existing non-anyhow error value.
Construct an Error with StatusCode::VARIANT_ALSO_NEGOTIATES from a string or existing non-anyhow error value.