Releases: hyperium/hyper
v0.11.2
v0.11.1
v0.11.0
Bug Fixes
- header:
- add length checks to
ETag
parsing (643fac1e) - prevent 2 panics in
QualityItem
parsing (d80aae55) - Allow IPv6 Addresses in
Host
header (8541ac72) - Remove raw part when getting mutable reference to typed header (f38717e4, closes #821)
- only add chunked to
TransferEncoding
if not present (1b4f8579) - ignore invalid cookies (310d98d5)
- add length checks to
- http:
- server:
- support HTTP/1.1 pipelining (523b890a)
Features
- body:
- client:
- add
HttpConnector.enforce_http
(1c34a05a) - add an accessor for the request body (4e26646a)
- Response.status() now returns a
StatusCode
by value (d63b7de4) - add Client::handle (9101817b)
- add Request.set_proxy for HTTP proxy requests (e8714116, closes #1056)
- DNS worker count is configurable (138e1643)
- add keep_alive_timeout to Client (976218ba)
- add
- error: Display for Error shows better info (49e196db, closes #694)
- header:
- add ContentType::octet_stream() constructor (1a353102)
- change
Cookie
to be map-like (dd03e723, closes #1145) - add
Cookie::iter()
(edc1c0dd) - implement fmt::Display for several headers (e9e7381e)
- add
Headers::append_raw
(b4b2fb78) - Add support for Retry-After header (1037bc77)
- add
Encoding::Brotli
variant (f0ab2b6a) - introduce
header::Raw
(#869) (50ccdaa7) - add
TE
header struct (#1150) (f1859dfd, closes #1109) - support Opaque origin headers (#1147) (41485997, closes #1065)
- add
HeaderView.raw()
(8143c33b) impl Eq for ContentType
(bba761ac)- add
Link
header implementation (592c1e21, closes #650) - add
star
,json
,text
,image
constructors toAccept
(bdc19d52) - Add strict-origin and strict-origin-when-cross-origin referer policy (3593d798)
- support multiple values for Referrer-Policy header (7b558ae8, closes #882)
- add
Warning
header (69894d19, closes #883) Headers::remove
returns the Header (9375addb, closes #891)- add
ContentLocation
header (13c5bf66, closes #870) - add
LastEventId
header (e1542a60) - add `Origin header (01843f88, closes #651)
- Add
ReferrerPolicy
header (3a86b3a2)
- http:
- lib:
- mime: upgrade to mime v0.3 (f273224f, closes #738)
- server:
- status:
- uri:
- version: impl
FromStr
forHttpVersion
(47f3aa62)
Breaking Changes
- The
Cookie
header is no longer a wrapper over a
Vec<String>
. It must be accessed via itsget
andset
methods.
(dd03e723)
- Any use of
Quality(num)
should change toq(num)
.
(a4644959)...
v0.10.0
Features
- client:
- header: remove
cookie
dependency (f22701f7) - lib:
Breaking Changes
-
There is no more
hyper::http::h2
.(d301c6a1)
-
The
Cookie
andSetCookie
headers no longer use the
cookie crate. New headers can be written for any header, or the ones
provided in hyper can be accessed as strings.(f22701f7)
-
There is no longer a
serde-serialization
feature.
Look at external crates, likehyper-serde
, to fulfill this feature.(7b9817ed)
-
hyper will no longer provide OpenSSL support out of the
box. Thehyper::net::Openssl
and related types are gone. TheClient
now uses anHttpConnector
by default, which will error trying to
access HTTPS URLs.TLS support should be added in from other crates, such as
hyper-openssl, or similar using different TLS implementations.If using a client, take a look at reqwest.
If using a server, look at hyper-native-tls or hyper-openssl.
(2f48612c)
-
Usage of
with_proxy_config
will need to change to
provide a network connector. For the same functionality, a
hyper::net::HttpConnector
can be easily created and passed.(14a4f1c2)
v0.9.14
v0.9.13
v0.9.12
Features
- error: export url::ParseError in hyper's error module