Skip to content
An HTTP library for Rust
Rust
Branch: master
Clone or download

Latest commit

rkuhn and seanmonstar feat(body): remove Sync bound for Body::wrap_stream
A stream wrapped into a Body previously needed to implement `Sync` so
that the Body type implements this autotrait as well (which is needed
due to limitations in async/await). Since a stream only offers one
method that is called with an exclusive reference, this type is
statically proven to be Sync already. In theory it should be fine to add
an `unsafe impl Sync`, but this commit instead adds a SyncWrapper to
enlist the compiler’s help in proving that this is (and remains) correct.

This makes it easier to construct response bodies for client code.
Latest commit 042c770 Apr 19, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore(ci): re-enable minimum rust version (1.39) Mar 25, 2020
benches refactor(benches): add adaptive_window http2 benchmark Mar 30, 2020
examples feat(example): read file by chunks in send_file example (#2193) Apr 24, 2020
src feat(body): remove Sync bound for Body::wrap_stream May 19, 2020
tests refactor(body): use HttpBody with extra bounds instead of Payload trait May 14, 2020
.gitignore init Aug 30, 2014
CHANGELOG.md v0.13.5 Apr 17, 2020
CONTRIBUTING.md docs(contributing): add link to easy issues Oct 9, 2017
Cargo.toml refactor(client): switch from net2 to socket2 (#2206) May 19, 2020
LICENSE chore(LICENSE): update license year Dec 5, 2018
README.md docs(readme): Add link to warp (#2081) Jan 29, 2020

README.md

hyper

crates.io Released API docs MIT licensed CI

A fast and correct HTTP implementation for Rust.

  • HTTP/1 and HTTP/2
  • Asynchronous design
  • Leading in performance
  • Tested and correct
  • Extensive production use
  • Client and Server APIs

Get started by looking over the guides.

"Low-level"

hyper is a relatively low-level library, meant to be a building block for libraries and applications.

If you are looking for a convenient HTTP client, then you may wish to consider reqwest. If you are looking for a convenient HTTP server, then you may wish to consider warp. Both are built on top of this library.

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.

You can’t perform that action at this time.