An HTTP library for Rust
'static
from connection IO trait bounds (#3595) (0013bdda)Full Changelog: https://github.com/hyperium/hyper/compare/v1.2.0...v1.3.0
max_headers(num)
to client and server (#3523) (b1142448)max_local_error_reset_streams
in server (#3530) (d7680e30)initial_max_send_streams
method to HTTP/2 client builder (#3524) (fdfa60d9)
max_pending_accept_reset_streams(num)
back to HTTP/2 server builder (#3507 (a9fa893f)Sleep::downcast_mut_pin()
no longer extend lifetime (7206fe30, closes #3556)Sleep::downcast_mut_pin()
is no longer 'static
. This shouldn't affect most usage. This sort of
breaking change is needed because it is wrong. (7206fe30)http1::Connection
without_shutdown()
method (#3430) (210bfaa7)server::conn::http1::UpgradeableConnection
(#3457) (6e3042a8)Full Changelog: https://github.com/hyperium/hyper/compare/v1.0.1...v1.1.0
conn::http1::Connection::without_shutdown()
method (#3431) (ad504977)Builder::local_addr()
(#3278) (d342c2c7)path
and scheme
components from URIs for HTTP/2 Extended CONNEC (45aa6249)This release "fixes" or adds a few things that should have been in 1.0.0, but were forgotten. Thus, it includes additions that would normally be a semver-minor release, but because it is so close to 1.0.0, it is released as a patch version.
Be sure to checkout the upgrading guide!
!Send
IO with HTTP/1 client (#3371) (cf87eda8, closes #3363)Http2ClientConnExec
and Http2ServerConnExec
(52b27faa)http1
header_read_timeout
to 30 seconds (8bf26d1e)hyper_executor::poll_next
(#3370) (0c7d03ef, closes #3369)http
1.0.(899e92a5)
ExecutorClient
is renamed to
Http2ClientConnExec
, and Http2ConnExec
is renamed to
Http2ServerConnExec
.(52b27faa)
If you use client HTTP/1 upgrades, you must call
Connection::with_upgrades()
to still work the same.
(cf87eda8)
HTTP/2 server builder now has a default max concurrent streams. This is a behavior change. Consider setting your own maximum. (dd638b5b)
Do not build any logic depending on the exact types of
an Error::source()
. They are only for debugging.
(502a6450)
The format no longer prints the error chain. Be sure to check if you are logging errors directly.
The Error::message()
method is removed, it is no longer needed.
The Error::into_cause()
method is removed.
(50f123af)
The ReasonPhrase::from_bytes_unchecked()
method is
gone. Use from_static()
or TryFrom
to construct one.
(4021c57b)
hyper::rt::{Read, Write}
instead of
tokio::io
traits. You can grab a helper type from hyper-util
to wrap Tokio types, or implement the traits yourself,
if it's a custom type.
(f9f65b7a)client::conn::http2
types now use another generic for an Executor
.
Code that names Connection
needs to include the additional generic parameter.
(d977f209)Service::call
function no longer takes a mutable reference to self.
The FnMut trait bound on the service::util::service_fn function and the trait bound
on the impl for the ServiceFn struct were changed from FnMut to Fn.
(d894439e)max_pending_accept_reset_streams
configuration option (#3201) (a6f7571a)