Skip to content

Releases: hyperium/hyper

v0.14.2

29 Dec 18:54
Compare
Choose a tag to compare

Features

  • client: expose connect types without proto feature (#2377) (73a59e5f)
  • server: expose Accept without httpX features (#2382) (a6d4fcbe)

v0.14.1

24 Dec 00:51
Compare
Choose a tag to compare
  • Fixes building documentation.

v0.14.0

23 Dec 19:02
Compare
Choose a tag to compare

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 server code an optional feature (#2334) (bdb5e5d6)
  • upgrade: Moved HTTP upgrades off Body to a new API (#2337) (121c3313, closes #2086)

Breaking Changes

  • hyper depends on tokio v1 and bytes v1.

  • Custom resolvers used with HttpConnector must change
    to resolving to an iterator of SocketAddrs instead of IpAddrs.
    (b4e24332)

  • hyper no longer emits log records automatically.
    If you need hyper to integrate with a log logger (as opposed to tracing),
    you can add tracing = { version = "0.1", features = ["log"] } to activate them.
    (db32e105)

  • Removed http1_writev methods from client::Builder,
    client::conn::Builder, server::Builder, and server::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 implements AsyncRead and AsyncWrite and returns
    false from its AsyncWrite::is_write_vectored method.
    (d6aadb83)

  • The method Body::on_upgrade() is gone. It is
    essentially replaced with hyper::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, add features = ["server"] to the dependency in
    your Cargo.toml.
    (bdb5e5d6)

  • The HTTP client of hyper is now an optional feature. To
    enable the client, add features = ["client"] to the dependency in
    your Cargo.toml.
    (4e55583d)

  • This puts all HTTP/1 methods and support behind an
    http1 cargo feature, which will not be enabled by default. To use
    HTTP/1, add features = ["http1"] to the hyper dependency in your
    Cargo.toml.

(2a19ab74)

  • This puts all HTTP/2 methods and support behind an
    http2 cargo feature, which will not be enabled by default. To use
    HTTP/2, add features = ["http2"] to the hyper dependency in your
    Cargo.toml.

(b819b428)

v0.13.9

02 Nov 23:30
Compare
Choose a tag to compare

Bug Fixes

  • client: fix panic when addrs in ConnectingTcpRemote is empty (#2292) (01103da5, closes #2291)
  • http2: reschedule keep alive interval timer once a pong is received (2a938d96, closes #2310)

Features

  • client:
    • add HttpConnector::set_local_addresses to set both IPv6 and IPv4 local addrs ( (fb19f3a8)
    • Add accessors to Connected fields (#2290) (2dc9768d)

v0.13.8

18 Sep 17:47
Compare
Choose a tag to compare

Bug Fixes

  • http1: return error if user body ends prematurely (1ecbcbb1, closes #2263)

Features

  • lib: Setting http1_writev(true) will now force writev queue usage (187c22af, closes #2282)
  • server: implement AsRawFd for AddrStream (#2246) (b5d5e214, closes #2245)

v0.13.7

14 Jul 00:12
Compare
Choose a tag to compare

Bug Fixes

  • client: don't panic in DNS resolution when task cancelled (#2229) (0d0d3635)

Features

  • client: impl tower_service::Service for &Client (#2089) (77c3b5bc)
  • http2: configure HTTP/2 frame size in the high-level builders too (#2214) (2354a7ee)
  • lib: Move from log to tracing in a backwards-compatible way (#2204) (9832aef9)

v0.13.6

29 May 19:03
Compare
Choose a tag to compare

Features

  • body: remove Sync bound for Body::wrap_stream (042c7706)
  • http2: allow configuring the HTTP/2 frame size (b6446456)

v0.13.5

29 May 19:03
Compare
Choose a tag to compare

Bug Fixes

  • server: fix panic in Connection::graceful_shutdown (fce3ddce)

v0.13.4

20 Mar 23:21
Compare
Choose a tag to compare

Bug Fixes

  • http1: try to drain connection buffer if user drops Body (d838d54f)

Features

  • http2: add HTTP2 keep-alive support for client and server (9a8413d9)

v0.13.3

03 Mar 23:45
Compare
Choose a tag to compare

Features