Crate ferrum [] [src]

Reexports

pub extern crate hyper;
pub extern crate futures;
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 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.

Structs

Ferrum

The primary entrance point to Ferrum, a struct to instantiate a new server.

Headers

A map of header fields on requests and responses.

TypeMap

A map keyed by types.

Uri

The Request-URI of a Request's StartLine.

Enums

Method

The Request Method (VERB)

StatusCode

An HTTP status code (status-code in RFC 7230 et al.).

Traits

Error

Base functionality for all errors in Rust.

Header

A trait for any object that will represent a header field and value.

Plugin

An interface for plugins that cache values between calls.

Type Definitions

FerrumResult

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

Server