github hyperium/hyper v0.5.0

latest releases: v1.3.1, v1.3.0, v1.2.0-temp-dont-ref-me...
8 years ago

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)

Don't miss a new hyper release

NewReleases is sending notifications on new releases.