Crate ferrum

Source

Re-exports§

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;

Modules§

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.

Macros§

header
Headers

Structs§

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.

Enums§

Method
Status Codes The Request Method (VERB)
StatusCode
Status Codes An HTTP status code (status-code in RFC 7230 et al.).

Traits§

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.

Type Aliases§

FerrumResult
The Result alias used throughout Ferrum and in clients of Ferrum.
Server
Server