Releases: hyperium/hyper
Releases · hyperium/hyper
v0.13.4
v0.13.3
v0.13.2
v0.13.1
v0.13.0
Bug Fixes
Features
- body:
- client:
- impl tower_service::Service for Client (edbd10ac)
- provide tower::Service support for clients (#1915) (eee2a728)
- change connectors to return an
impl Connection
(4d7a2266) - remove
Destination
forhttp::Uri
in connectors (319e8aee) - filter remote IP addresses by family of given local IP address (131962c8)
- change
Resolve
to beService<Name>
(9d9233ce, closes #1903) - change
Connect
trait into an alias forService
(d67e49f1, closes #1902) - change
GaiResolver
to use a global blocking threadpool (049b5132) - Add connect timeout to HttpConnector (#1972) (4179297a)
- lib:
- rt: introduce
rt::Executor
trait (6ae5889f, closes #1944) - server:
- service:
Breaking Changes
- All usage of async traits (
Future
,Stream
,
AsyncRead
,AsyncWrite
, etc) are updated to newer versions.
(8f4b05ae)
- All usage of
hyper::Chunk
should be replaced with
bytes::Bytes
(orhyper::body::Bytes
).
(5a598757)
- Using a
Body
as aStream
, and constructing one via
Body::wrap_stream
, require enabling thestream
feature.
(511ea388)
- Calls to
GaiResolver::new
andHttpConnector::new
no
longer should pass an integer argument for the number of threads.
(049b5132)
- Connectors no longer return a tuple of
(T, Connected)
, but a singleT: Connection
.
(4d7a2266)
- All usage of
hyper::client::connect::Destination
should be replaced withhttp::Uri
.
(319e8aee)
- All usage of
hyper::body::Payload
should be replaced
withhyper::body::HttpBody
.
(c63728eb)
-
Any type passed to the
executor
builder methods must
now implementhyper::rt::Executor
.hyper::rt::spawn
usage should be replaced withtokio::task::spawn
.hyper::rt::run
usage should be replaced with#[tokio::main]
or
managing atokio::runtime::Runtime
manually.
(6ae5889f)
-
The
Resolve
trait is gone. All custom resolvers should
implementtower::Service
instead.The error type of
HttpConnector
has been changed away from
std::io::Error
.
(9d9233ce)
- Any manual implementations of
Connect
must instead
implementtower::Service<Uri>
.
(d67e49f1)
- The server's behavior will now by default close
connections when receiving a read EOF. To allow for clients to close
the read half, callhttp1_half_close(true)
when configuring a
server.
(7e31fd88)
- Passing a
Stream
toServer::builder
or
Http::serve_incoming
must be changed to pass anAccept
instead. The
stream
optional feature can be enabled, and then a stream can be
converted usinghyper::server::accept::from_stream
.
(b3e55062)
- Usage of
send_data
should either be changed to
async/await or usetry_send_data
.
(62a96c07)
v0.13.0-alpha.2
Bug Fixes
Features
- body:
- server: introduce
Accept
trait (b3e55062)
Breaking Changes
- Using a
Body
as aStream
, and constructing one via
Body::wrap_stream
, require enabling theunstable-stream
feature.
(511ea388)
- Passing a
Stream
toServer::builder
or
Http::serve_incoming
must be changed to pass anAccept
instead. The
unstable-stream
optional feature can be enabled, and the a stream can be
converted usinghyper::server::accept::from_stream
.
(b3e55062)
v0.12.35
v0.13.0-alpha.1
Bug Fixes
Features
- body:
- client:
- lib: update to
std::future::Future
(8f4b05ae) - service: use tower_service::Service for hyper::service (ec520d56)
Breaking Changes
- Usage of
send_data
should either be changed to
async/await or usetry_send_data
.
(62a96c07)
- Calls to
GaiResolver::new
andHttpConnector::new
no
longer should pass an integer argument for the number of threads.
(049b5132)
- All usage of async traits (
Future
,Stream
,
AsyncRead
,AsyncWrite
, etc) are updated to newer versions.
(8f4b05ae)