Skip to content

Releases: hyperium/hyper

v0.8.0

14 Mar 17:00
Compare
Choose a tag to compare

Bug Fixes

  • headers: remove charset from ContentType::json() convenience method (ec568e9a)
  • net: fix the typo in set_write_timeout (7c76fff3)

Features

  • client: Implement Debug for Client (8c7ef7fd)
  • status: add HTTP statuses 421 and 451 (93fd5a87)

Breaking Changes

  • mime 0.2 depends on serde 0.7, so any instances of
    using older versions of serde will need to upgrade.

    (146df53c)

v0.6.16

16 Nov 18:46
Compare
Choose a tag to compare

Bug Fixes

  • response: respond with a 500 if a handler panics (63c6762c)

Features

  • headers: Add Access-Control-Expose-Headers (f783e991)
  • server: Add hooks for HttpListener and HttpsListener to be started from existing listene (fa0848d4)

Breaking Changes

  • RequestBuilder<U> should be replaced by RequestBuilder.

    (ff4a6070)

v0.6.15

21 Oct 00:41
Compare
Choose a tag to compare

Bug Fixes

  • server: use a timeout for Server keep-alive (cdaa2547, closes #368)

Features

  • client: add patch method to Client builder interface (03827c31)

v0.6.10

19 Aug 23:00
Compare
Choose a tag to compare

Bug Fixes

  • client: close connection when there is an Error (d32d35bb)

Features

  • uri: implement fmt::Display for RequestUri () (80931cf4, closes #629)

v0.6.9

19 Aug 22:59
Compare
Choose a tag to compare

Bug Fixes

  • client:
    • improve keep-alive of bodyless Responses (67c284a9)
    • improve HttpReader selection for client Responses (31f117ea, closes #436)
  • nightly: remove feature flag for duration (0455663a)

Features

  • headers: Content-Range header (af062ac9)
  • net: impl downcast methods for NetworkStream (without + Send) (1a91835a, closes #521)
  • server: add Request.ssl() to get underlying ssl stream (7909829f, closes #627)

v0.6.8

04 Aug 00:23
Compare
Choose a tag to compare

Bug Fixes

  • headers: fix broken deserialization of headers (f5f5e1cb)

Features

  • net:
    • Implement NetworkConnector for closure to be more flexible (abdd4c5d)
    • add socket timeouts to Server and Client (7d1f154c, closes #315)
    • implement FromRawFd/FromRawSocket (664bde58)

Breaking Changes

  • Any custom implementation of NetworkStream must now
    implement set_read_timeout and set_write_timeout, so those will
    break. Most users who only use the provided streams should work with
    no changes needed.

    Closes #315

    (7d1f154c)

v0.6.1

06 Jul 20:53
Compare
Choose a tag to compare

Bug Fixes

  • benches: adjust to missing set_ssl_verifier (eb38a11b)
  • cargo: fix linking on OSX 10.10 (9af2b66f)
  • client: use Ssl instance in creation of SslStream (1a490e25)

v0.6.0

25 Jun 19:04
Compare
Choose a tag to compare

Bug Fixes

  • client: check for drained stream in Response::drop (e689f203)

Features

  • client:
  • error: add private __Nonexhaustive variant to Error (7c0421e3)
  • headers:
  • http2:
    • implement message API for HTTP/2 (f0fe2c5a)
    • add new error variant for HTTP/2 (48e9ca2f)
    • add dependency on solicit (3122ffef)
  • langtags: use true language tags in headers (99ff7e62)
  • ssl: redesign SSL usage (53bba6eb)

Breaking Changes

  • AcceptLanguage and ContentLanguage use LanguageTag now,
    Language removed from Hyper.

    (99ff7e62)

  • Server::https was changed to allow any implementation
    of Ssl. Server in general was also changed. HttpConnector no longer
    uses SSL; using HttpsConnector instead.

    (53bba6eb)

  • Connectors and Protocols passed to the Client must
    now also have a Sync bounds, but this shouldn't break default usage.

    (64e47b4b)

  • parse_header returns Result instead of Option, related
    code did also change

    (195a89fa)

  • Adds a new variant to public Error enum. The proper fix
    is to stop matching exhaustively on hyper::Error.

    (7c0421e3)

  • A new variant Http2 added to a public enum
    hyper::Error.

    (48e9ca2f)

  • hyper::client::request::Response is no longer generic
    over NetworkStream types. It no longer requires a generic type
    parameter at all.

    (aa297f45)

v0.5.2

01 Jun 18:44
Compare
Choose a tag to compare

Bug Fixes

  • buffer: check capacity before resizing (b1686d1b)

v0.5.1

01 Jun 18:39
Compare
Choose a tag to compare

Bug Fixes

  • client: don't close stream until EOF (a5e6174e, closes #543)

Features

  • client: implement Default trait for client (be041d91)
  • header: add ContentType::form_url_encoded() constructor (2c99d4e9)
  • headers: return hyper::Error instead of () from header components (5d669399)
  • http: add get_mut method to HttpReader (e64ce8c0)

Breaking Changes

  • Error enum extended. Return type of header/shared/
    types changed.

    (5d669399)