Skip to content

Releases: hyperium/hyper

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)

v0.5.0

01 Jun 18:39
Compare
Choose a tag to compare

Bug Fixes

  • client:
    • dont call close() inside Request (3334fca2, closes #519)
    • keep the underlying connector when setting an SSL verifier (f4556d55, closes #495)
  • mock: adjust ChannelMockConnector connect method to compile (085d7b07)

Features

  • header:
    • add ContentType::json(), plaintext(), html(), jpeg(), and png() constructors (b6114ecd)
    • add Connection::close() and ::keep_alive() constructors (c2938fb4)
    • export __hyper__tm! macro so test modules work with header! (f64fb10b)
  • net:
    • remove mut requirement for NetworkConnector.connect() (1b318724)
    • add set_ssl_verifier method to NetworkConnector trait (a5d632b6)
  • server: check Response headers for Connection: close in keep_alive loop (49b5b8fd)

Breaking Changes

  • Usage of Response.deconstruct() and construct() now use
    a &mut Headers, instead of the struct proper.

    (49b5b8fd)

  • If you use deref! from the header module, you'll need
    to switch to using __hyper__deref!.

    (62d96adc)

  • Any custom Connectors will need to change to &self in
    the connect method. Any Connectors that needed the mutablity need to
    figure out a synchronization strategy.

    Request::with_connector() takes a &NetworkConnector instead of &mut.
    Any uses of with_connector will need to change to passing &C.

    (1b318724)

  • Adding a new required method to a public trait is a
    breaking change.

    (a5d632b6)

v0.4.0

07 May 20:55
Compare
Choose a tag to compare

Bug Fixes

  • net: ignore NotConnected error in NetworkStream.close (6be60052, closes #508)

Features

  • error: add Ssl variant to hyper::Error (972b3a38, closes #483)
  • headers:
    • Allow null value in Access-Control-Allow-Origin (5e341714)
    • Parse Upgrade header protocols further (f47d11b9, closes #480)
    • Add From header field (ce9c4af1)
    • Add Accept-Ranges header field (2dbe3f9b)
  • method: implement AsRef<str> for Method (c29af729)
  • server:
    • add Response.send to write a sized body (d5558b68, closes #446)
    • dropping a Response will write out to the underlying stream (a9dcc59c)

Breaking Changes

  • Adds a variant to hyper::Error, which may break any
    exhaustive matches.

    (972b3a38)

  • The terms Http and Error have been removed from the Error
    type and its variants. HttpError should now be accessed as hyper::Error,
    and variants like HttpIoError should be accessed as Error::Io.

    (9ba074d1)

  • Add variant to Access-Control-Allow-Origin enum

    (5e341714)

  • Upgrade header Protocol changed.

    (f47d11b9)

  • from_one_raw_str() returns None on empty values.

    (a6974c99)

v0.3.16

07 May 20:55
Compare
Choose a tag to compare

Bug Fixes

  • header:
    • make test_module of header! optional (a5ce9c59, closes #490)
    • exporting test_header! macro (2bc5a779)
  • http: keep raw reason phrase in RawStatus (8cdb9d5d, closes #497)

Features