Releases: hyperium/hyper
v0.14.9
v0.14.8
v0.14.6
v0.14.5
v0.14.4
Bug Fixes
- build: Fix compile error when only
http1feature was enabled.
v0.14.3
v0.13.10
Bug Fixes
-
http1: fix server misinterpretting multiple Transfer-Encoding headers (6d9e5f9f)
v0.14.2
v0.14.1
- Fixes building documentation.
v0.14.0
Blog post: https://seanmonstar.com/post/638320652536922112/hyper-v014
Bug Fixes
Features
- client:
- http1: Make HTTP/1 support an optional feature (2a19ab74)
- http2: Make HTTP/2 support an optional feature (b819b428)
- lib:
- server: Make the
servercode an optional feature (#2334) (bdb5e5d6) - upgrade: Moved HTTP upgrades off
Bodyto a new API (#2337) (121c3313, closes #2086)
Breaking Changes
-
hyper depends on
tokiov1 andbytesv1. -
Custom resolvers used with
HttpConnectormust change
to resolving to an iterator ofSocketAddrs instead ofIpAddrs.
(b4e24332) -
hyper no longer emits
logrecords automatically.
If you need hyper to integrate with aloglogger (as opposed totracing),
you can addtracing = { version = "0.1", features = ["log"] }to activate them.
(db32e105) -
Removed
http1_writevmethods fromclient::Builder,
client::conn::Builder,server::Builder, andserver::conn::Builder.Vectored writes are now enabled based on whether the
AsyncWrite
implementation in use supports them, rather than though adaptive
detection. To explicitly disable vectored writes, users may wrap the IO
in a newtype that implementsAsyncReadandAsyncWriteand returns
falsefrom itsAsyncWrite::is_write_vectoredmethod.
(d6aadb83) -
The method
Body::on_upgrade()is gone. It is
essentially replaced withhyper::upgrade::on(msg).
(121c3313) -
All optional features have been disabled by default.
(ed2b22a7) -
The HTTP server code is now an optional feature. To
enable the server, addfeatures = ["server"]to the dependency in
yourCargo.toml.
(bdb5e5d6) -
The HTTP client of hyper is now an optional feature. To
enable the client, addfeatures = ["client"]to the dependency in
yourCargo.toml.
(4e55583d) -
This puts all HTTP/1 methods and support behind an
http1cargo feature, which will not be enabled by default. To use
HTTP/1, addfeatures = ["http1"]to the hyper dependency in your
Cargo.toml.
(2a19ab74)
- This puts all HTTP/2 methods and support behind an
http2cargo feature, which will not be enabled by default. To use
HTTP/2, addfeatures = ["http2"]to the hyper dependency in your
Cargo.toml.
(b819b428)