All Versions
87
Latest Version
Avg Release Cycle
27 days
Latest Release
18 days ago
Changelog History
Page 7
Changelog History
Page 7
-
v0.9.3 Changes
๐ Features
- โ Adds
multipart::Part::bytes()to create a part of raw bytes. - โ Adds constructors for
Responseto help with testing.
๐ Fixes
- Properly percent-encoding more illegal characters in multipart filenames.
- Ensure timed out requests cancel the associated async task.
- โ Adds
-
v0.9.2 Changes
๐ Fixes
- ๐ Fix panic when
Locationheader has UTF-8 characters.
- ๐ Fix panic when
-
v0.9.1 Changes
๐ Fixes
- ๐ Fix large request bodies failing because of improper handling of backpressure.
- โ Remove body-related headers when redirect changes a
POSTinto aGET. - โฌ๏ธ Reduce memory size of
ResponseandErrorsignicantly.
-
v0.9.0 Changes
๐ Features
- โฌ๏ธ Upgrade to
tokio0.1. - โฌ๏ธ Upgrade to
hyper0.12. - โฌ๏ธ Upgrade to
native-tls0.2. - Add
ClientBuilder::danger_accept_invalid_certs(bool)to disable certificate verification. - โ Add
RequestBuilder::bearer_auth(token)to ease sending bearer tokens. - โ Add
headers()andheaders_mut()tomultipart::Partto allow sending extra headers for a specific part. - ๐ Moved
request::unstable::asynctoreqwest::async.
๐ Fixes
- ๐ Fix panicking when passing a
Urlwith afile://scheme. Instead, anErroris returned.
๐ฅ Breaking Changes
- Changed
ClientBuilder::danger_disable_hostname_verification()toClientBuilder::danger_accept_invalid_hostnames(bool). - ๐ Changed
ClientBuilderto be a by-value builder instead of by-ref.
For single chains of method calls, this shouldn't affect you. For code that conditionally uses the builder, this kind of change is needed:
// Old let mut builder = ClientBuilder::new(); if some_val { builder.gzip(false); } let client = builder.build()?; // New let mut builder = ClientBuilder::new(); if some_val { builder = builder.gzip(false); } let client = builder.build()?;- ๐ Changed
RequestBuilderto be a by-value builder of by-ref.
See the previous note about
ClientBuilderfor affected code and how to change it.- โ Removed the
unstablecargo-feature, and movedreqwest::unstable::asynctoreqwest::async. - ๐ Changed
multipart::Part::mime()tomime_str().
// Old let part = multipart::Part::file(path)? .mime(mime::TEXT_PLAIN); // New let part = multipart::Part::file(path)? .mime_str("text/plain")?;- โฌ๏ธ The upgrade to
hyper0.12 means a temporary removal of the typed headers.
The
RequestBuilderhas simple methods to set headers using strings, which can work in most places.// Old client .get("https://hyper.rs") .header(UserAgent::new("hallo")) .send()?; // New client .get("https://hyper.rs") .header("user-agent", "hallo") .send()?;To ease the transition, there is a
hyper-011cargo-feature that can be enabled.[dependencies] reqwest = { version = "0.9", features = ["hyper-011"] }And then usage:
client .get("https://hyper.rs") .header_011(reqwest::hyper_011::header::UserAgent::new("hallo")) .send()?; - โฌ๏ธ Upgrade to
-
v0.8.8 Changes
- ๐ Fix docs.rs/reqwest build.
-
v0.8.7 Changes
๐ Fixes
- Send an extra CRLF at the end of multipart requests, since some servers expect it.
- โ Removed internal dependency on
tokio-proto, which removed unsafesmall-vecdependency.
-
v0.8.6 Changes
๐ Features
- โ Add
RedirectAttempt::statusto check status code that triggered redirect. - โ Add
RedirectPolicy::redirectmethod publicly, to allow composing policies.
- โ Add
-
v0.8.5 Changes
๐ Features
- Try to auto-detect encoding in
Response::text(). - โ Add
Certificate::from_pemto load PEM encoded client certificates. - ๐ Allow unsized types in
query,form, andjson. - โ Add
unstable::async::RequestBuilder::query, mirroring the stable builder method.
- Try to auto-detect encoding in
-
v0.8.4 Changes
๐ Features
- โ Add
RequestBuilder::queryto easily adjust query parameters of requests.
- โ Add
-
v0.8.3 Changes
๐ Features
- โฌ๏ธ Upgrades internal log crate usage to v0.4