Crate hyper [] [src]

Hyper

Hyper is a fast, modern HTTP implementation written in and for Rust. It is a low-level typesafe abstraction over raw HTTP, providing an elegant layer over "stringly-typed" HTTP.

Hyper provides both a Client and a Server, along with a typed Headers system.

If just starting out, check out the Guides first.

Reexports

pub extern crate mime;
pub use client::Client;
pub use error::Result;
pub use error::Error;
pub use header::Headers;
pub use method::Method::Get;
pub use method::Method::Head;
pub use method::Method::Post;
pub use method::Method::Put;
pub use method::Method::Delete;
pub use status::StatusCode::Ok;
pub use status::StatusCode::BadRequest;
pub use status::StatusCode::NotFound;
pub use server::Server;

Modules

client

HTTP Client

error

Error and Result module.

header

Headers container, and common header fields.

server

HTTP Server

Macros

header

Structs

Body

A Stream for Chunks used in requests and responses.

Chunk

A piece of a message body.

Request

An HTTP Request

Response

An HTTP Response

Uri

The Request-URI of a Request's StartLine.

Enums

HttpVersion

Represents a version of the HTTP spec.

Method

The Request Method (VERB)

StatusCode

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