Sean McArthur 8ba9a8d2c4 feat(body): add body::aggregate and body::to_bytes functions
Adds utility functions to `hyper::body` to help asynchronously
collecting all the buffers of some `HttpBody` into one.

- `aggregate` will collect all into an `impl Buf` without copying the
  contents. This is ideal if you don't need a contiguous buffer.
- `to_bytes` will copy all the data into a single contiguous `Bytes`
  buffer.
2019-12-06 10:03:05 -08:00
2014-08-30 14:18:28 -07:00
2018-12-05 10:56:20 -08:00
2019-12-05 14:08:02 -08:00

hyper

crates.io Released API docs MIT licensed CI

A fast and correct HTTP implementation for Rust.

Get started by looking over the guides.

Hyper is a relatively low-level library, if you are looking for simple high-level HTTP client, then you may wish to consider reqwest, which is built on top of this library.

NOTE: hyper's master branch is currently preparing breaking changes, for most recently released code, look to the 0.12.x branch.

Overview

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

hyper offers both an HTTP client and server which can be used to drive complex web applications written entirely in Rust.

hyper makes use of "async IO" (non-blocking sockets) via the Tokio and Futures crates.

Be aware that hyper is still actively evolving towards 1.0, and is likely to experience breaking changes before stabilising. However, this mostly now around the instability of Future and async. The rest of the API is rather stable now. You can also see the issues in the upcoming milestones.

Contributing

To get involved, take a look at CONTRIBUTING.

There are two main avenues for real-time chatting about hyper: a Gitter room and irc.mozilla.org/hyper. They are mirrored, so choose whichever format you prefer.

License

hyper is provided under the MIT license. See LICENSE.

Description
No description provided
Readme MIT 6.5 MiB
Languages
Rust 94.5%
C 5.2%
Shell 0.3%