hyper v0.4.0 Release Notes

Release Date: 2015-05-07 // almost 9 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)