Crate hyper

source · []
Expand description

hyper

hyper is a fast and correct HTTP implementation written in and for Rust.

hyper provides both a Client and a Server.

If just starting out, check out the Guides first.

If looking for just a convenient HTTP client, consider the reqwest crate.

Re-exports

pub use client::Client;
pub use error::Result;
pub use error::Error;
pub use server::Server;

Modules

Streaming bodies for Requests and Responses

HTTP Client

Error and Result module.

HTTP header types

Default runtime

HTTP Server

Services and MakeServices

HTTP Upgrades

Structs

A stream of Chunks, used when receiving bodies.

A piece of a message body.

A set of HTTP headers

The Request Method (VERB)

Represents an HTTP request.

Represents an HTTP response

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

The URI component of a request.

Represents a version of the HTTP spec.