Releases: hyperium/hyper
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)
v0.3.16
v0.3.15
Bug Fixes
- headers:
Features
- client:
- headers: Implement Content-Language header field (308880b4, closes #475)
- net: add https_using_context for user-supplied SslContext (1a076d1b)
- server: allow consumer to supply an SslContext (3a1a2427, closes #471)
Breaking Changes
-
This removes the trait
IntoBody
, and instead using
Into<Body>
, as it's more idiomatic. This will only have broken code
that had custom implementations ofIntoBody
, and can be fixed by
changing them toInto<Body>
.(a2aefd9a)
v0.3.14
v0.3.13
v0.3.12
Bug Fixes
- server:
Features
v0.3.11
Bug Fixes
- headers: Content-Encoding needs a hyphen. (ca2815ef)
Features
Breaking Changes
-
AccessControlAllowHeaders
andAccessControlRequestHeaders
values
are case insensitive now.AccessControlAllowOrigin
variants are nowAny
and
Value
to match the other headers.(94f38950)
-
If-Match
,If-None-Match
andVary
item variant name changed toItems
(38d297b1)
-
Etag
header field is nowETag
header field(4434ea6a)
-
For people using the default HttpConnector and Client,
everything should continue to just work. If the Client has been
used with a generic parameter, it should be removed.However, there were some breaking changes to the internals of
NetworkConnectors. Specifically, they no longer return a
NetworkStream, but instead a Into<Box<NetworkStream + Send>>. All
implementations of NetworkStream should continue to just work,
however.Possible breakages could come from the stricter usage of Send
throughout the Client API.(139a51f1)