cargo hyper 0.4.0

latest releases: 0.14.17, 0.14.16, 0.14.15...
8 years ago

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)

Don't miss a new hyper release

NewReleases is sending notifications on new releases.