Releases: hyperium/hyper
v0.6.10
v0.6.9
v0.6.8
v0.6.1
v0.6.0
Bug Fixes
- client: check for drained stream in Response::drop (e689f203)
Features
- client:
- error: add private __Nonexhaustive variant to Error (7c0421e3)
- headers:
- http2:
- 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 aSync
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 onhyper::Error
.(7c0421e3)
-
A new variant
Http2
added to a public enum
hyper::Error
.(48e9ca2f)
-
hyper::client::request::Response
is no longer generic
overNetworkStream
types. It no longer requires a generic type
parameter at all.(aa297f45)
v0.5.2
v0.5.1
Bug Fixes
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
Bug Fixes
- client:
- mock: adjust ChannelMockConnector connect method to compile (085d7b07)
Features
- header:
- net:
- 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
Bug Fixes
Features
- error: add Ssl variant to hyper::Error (972b3a38, closes #483)
- headers:
- method: implement
AsRef<str>
forMethod
(c29af729) - server:
Breaking Changes
-
Adds a variant to
hyper::Error
, which may break any
exhaustive matches.(972b3a38)
-
The terms
Http
andError
have been removed from the Error
type and its variants.HttpError
should now be accessed ashyper::Error
,
and variants likeHttpIoError
should be accessed asError::Io
.(9ba074d1)
-
Add variant to Access-Control-Allow-Origin enum
(5e341714)
-
Upgrade header Protocol changed.
(f47d11b9)
-
from_one_raw_str()
returnsNone
on empty values.(a6974c99)