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.

Reexports

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

Modules

client

HTTP Client

error

Error and Result module.

header

Headers container, and common header fields.

server

HTTP Server

status

HTTP status codes

Macros

header

Structs

Body

A Stream for Chunks used in requests and responses.

Chunk

A piece of a message body.

Url

A parsed URL record.

Enums

HttpVersion

Represents a version of the HTTP spec.

Method

The Request Method (VERB)

RequestUri

The Request-URI of a Request's StartLine.