Skip to content

Releases: hyperium/hyper

v1.0.0

15 Nov 17:50
Compare
Choose a tag to compare

Be sure to checkout the upgrading guide!

Features

  • client: allow !Send IO with HTTP/1 client (#3371) (cf87eda8, closes #3363)
  • error:
  • ext:
    • make ReasonPhrase::from_static a const fn (d4a61e3d)
    • remove ReasonPhrase::from_bytes_unchecked() method (4021c57b)
  • lib:
  • rt: rename to Http2ClientConnExec and Http2ServerConnExec (52b27faa)
  • server: default http1 header_read_timeout to 30 seconds (8bf26d1e)
  • upgrade: introduce tracing as an optional unstable feature (#3326) (da3fc76c, closes #3319)

Bug Fixes

Breaking Changes

  • Upgrade to http 1.0.

(899e92a5)

  • (From previous RCs) 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)

New Contributors

v1.0.0-rc.4

10 Jul 19:26
Compare
Choose a tag to compare
v1.0.0-rc.4 Pre-release
Pre-release

Bug Fixes

Features

Breaking Changes

  • Any IO transport type provided must not implement 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)
  • The 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)

New Contributors

v0.14.27

26 Jun 16:11
Compare
Choose a tag to compare

Bug Fixes

  • http1:

Features

  • client: include connection info in Client::send_request errors (#2749)

v0.14.26

13 Apr 20:51
Compare
Choose a tag to compare

Features

  • http2: add max_pending_accept_reset_streams configuration option (#3201) (a6f7571a)

New Contributors

v0.14.25

10 Mar 18:40
Compare
Choose a tag to compare

Features

New Contributors

  • @rcoh made their first contribution in #3145
  • @iamwwc made their first contribution in #3119

v1.0.0-rc.3

23 Feb 18:53
Compare
Choose a tag to compare
v1.0.0-rc.3 Pre-release
Pre-release

Bug Fixes

  • server: prevent sending 100-continue if user drops request body (#3137) (499fe1f9)

Features

Breaking Changes

  • hyper::client::conn::Http2::Builder::new now requires an executor argument.
    (8068aa01)
  • The method
    hyper::client::conn::http1::Builder::executor() is removed, since it did nothing.
    (1de9accf)

New Contributors

v0.14.24

02 Feb 14:43
Compare
Choose a tag to compare

Bug Fixes

  • body: set an internal max to reserve in to_bytes (4d89adce)
  • server: prevent sending 100-continue if user drops request body (#3138) (92443d7e)

Features

  • http2: add http2_max_header_list_size to hyper::server::Builder (#3006) (031425f0)

New Contributors

v1.0.0-rc.2

29 Dec 20:07
Compare
Choose a tag to compare
v1.0.0-rc.2 Pre-release
Pre-release

Bug Fixes

  • client: send an error back to client when dispatch misbehaves () (75aac9f4, closes #2649)
  • http2: Fix race condition in client dispatcher (#3041) (f202230c)

Features

  • body: upgrade to http-body 1.0.0-rc.2 (#3106) (51b45e3f)
  • client:
    • remove http2_ prefixes from client::conn::http2::Builder methods (669df217)
    • remove http1_ prefixes from client::conn::http1::Builder methods (4cbaef79)
    • implement Clone for http2::SendRequest (#3042) (00ea49e4, closes #3036)
    • allow ignoring HTTP/1 invalid header lines in requests (81e25fa8)
  • rt: Clean up Timer trait (#3037) (8790fee7, closes #3028)
  • server:
    • remove http1_ method prefixes from server::conn::http2::Builder (291ed0b4)
    • remove http1_ method prefixes from server::conn::http2::Builder (48e70c69)
    • remove server::conn::http2::Builder::with_executor() (#3089) (ab59a6f7, closes #3087)

Breaking Changes

  • removes server::conn::http2::Builder::with_executor()
    (ab59a6f7)
  • The return types of Timer have been changed.
    (8790fee7)
  • The return types for Frame::into_data() and Frame::into_trailers() have been changed from Option<T> to Result<T, Self>.
  • Most methods on the various Builders have have their names changed, removing the version prefix (e.g. http1_writev() becomes writev()).

New Contributors

v0.14.23

07 Nov 19:22
Compare
Choose a tag to compare

Bug Fixes

  • http2: Fix race condition in client dispatcher (#3041) (2f1c0b72, closes #2419)
  • dependencies: Really fix compile-time feature for socket2 dependency.

New Contributors

v0.14.22

31 Oct 17:40
Compare
Choose a tag to compare

Bug Fixes

  • server: fix compile-time cfgs for TCP keepalive options (#3039) (e8765e0f, closes #3038)