hyper v0.5.0 Release Notes

Release Date: 2015-05-12 // almost 9 years ago
  • ๐Ÿ› Bug Fixes

    • client:
      • don't 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 hypertm! 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 hyperderef!.

    (62d96adc)

    • Any custom Connectors will need to change to &self in the connect method. Any Connectors that needed the mutability 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)