Crate ferrum
Source pub extern crate futures;
pub extern crate hyper;
pub extern crate mime;
pub extern crate url;
pub use request::Request;
pub use response::Response;
pub use middleware::BeforeMiddleware;
pub use middleware::AfterMiddleware;
pub use middleware::AroundMiddleware;
pub use middleware::Handler;
pub use middleware::Chain;
pub use error::FerrumError;
- error
- Ferrum’s error type and associated utilities.
- header
- Headers
Headers container, and common header fields.
- middleware
- This module contains Ferrum’s middleware and handler system, the fundamental
building blocks for handling HTTP requests and generating responses.
- request
- Request utilities
Ferrum’s HTTP Request representation and associated methods.
- response
- Response utilities
Ferrum’s HTTP Response representation and associated methods.
- service
- typemap
- Re-exports from the
TypeMap
crate.
- header
- Headers
- Ferrum
- Server
The primary entrance point to
Ferrum
, a struct
to instantiate a new server. - Headers
- A map of header fields on requests and responses.
- TypeMap
- Extensions
A map keyed by types.
- Uri
- Status Codes
The Request-URI of a Request’s StartLine.
- Method
- Status Codes
The Request Method (VERB)
- StatusCode
- Status Codes
An HTTP status code (
status-code
in RFC 7230 et al.).
- Error
- Errors
Error
is a trait representing the basic expectations for error values,
i.e., values of type E
in Result<T, E>
. - Header
- A trait for any object that will represent a header field and value.
- Plugin
- Expose
Pluggable
as Plugin
so users can do use ferrum::Plugin
.
An interface for plugins that cache values between calls.
- FerrumResult
- The Result alias used throughout Ferrum and in clients of Ferrum.
- Server
- Server