5f6f252c603c642be8037682c1bf7e7ed2392a53
as_u16() method
A `From<StatusCode> for u16` has existed, but the docs cannot show it. It also is slightly more annoying to use if type inference can't figure the types out. This includes an explicit method to get a `u16`.
hyper
A Modern HTTP library for Rust.
Documentation
Get started by looking over the guides.
Overview
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 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 libraries.
See the Hello World example for a toy server using hyper.
Be aware that hyper is still actively evolving towards 1.0, and is likely to experience breaking changes before stabilising. You can also see the 1.0 issue milestone.
Languages
Rust
94.5%
C
5.2%
Shell
0.3%