v0.10.0
This commit is contained in:
34
CHANGELOG.md
34
CHANGELOG.md
@@ -1,29 +1,35 @@
|
|||||||
# v0.10.0-alpha.2
|
# v0.10.0
|
||||||
|
|
||||||
- Add `Request::try_clone()` method.
|
|
||||||
- Add HTTP2 window size configuration to `ClientBuilder`.
|
|
||||||
- Add `Body::as_bytes()` method.
|
|
||||||
- Add `Response::bytes()` method for WASM target.
|
|
||||||
- Add `RequestBuilder::body()` method for WASM target.
|
|
||||||
- Change to enable system/environment proxy detection by default.
|
|
||||||
- Fix checking `HTTP_PROXY` environment variable if it the environment is from a CGI script.
|
|
||||||
- Fix removal of username/password of parsed proxy URL.
|
|
||||||
- Fix pinning `async-compression` dependency to last alpha.
|
|
||||||
|
|
||||||
# v0.10.0-alpha.1
|
|
||||||
|
|
||||||
- Add `std::future::Future` support.
|
- Add `std::future::Future` support.
|
||||||
- Add `wasm32-unknown-unknown` support (with fewer features).
|
- Add `wasm32-unknown-unknown` support (with fewer features).
|
||||||
- Add ability to pass async `Response` as the `body` of another `Request`.
|
- Add ability to pass async `Response` as the `body` of another `Request`.
|
||||||
|
- Add `Body::as_bytes()` method.
|
||||||
|
- Add `Response::bytes_stream()` method to get body as an `impl Stream`.
|
||||||
|
- Add `Request::try_clone()` method.
|
||||||
|
|
||||||
- Change default `Client` API to async. The previous blocking client API is avaialble at `reqwest::blocking`.
|
- Change default `Client` API to async. The previous blocking client API is avaialble at `reqwest::blocking`.
|
||||||
|
- Change to no longer send a default `User-Agent` header. Add one via `ClientBuilder::user_agent()`.
|
||||||
|
- Change to enable system/environment proxy detection by default.
|
||||||
|
- Change `default-tls` feature to only include `ClientBuilder` options that both `native-tls` and `rustls` support.
|
||||||
- Change default feature set to reduce unnecessary dependencies. Most features are disabled by default:
|
- Change default feature set to reduce unnecessary dependencies. Most features are disabled by default:
|
||||||
- `blocking`: The `reqwest::blocking` (synchronous) client API.
|
- `blocking`: The `reqwest::blocking` (synchronous) client API.
|
||||||
- `cookies`: Cookie store support.
|
- `cookies`: Cookie store support.
|
||||||
- `gzip`: Automatic response body decompression.
|
- `gzip`: Automatic response body decompression.
|
||||||
- `json`: Request and response JSON body methods.
|
- `json`: Request and response JSON body methods.
|
||||||
- Change `futures::Stream` support to a disabled-by-default `unstable-stream` feature.
|
- `stream`: `futures::Stream` support.
|
||||||
- Change `Error` internal design, removing several `Error::is_*` inspector methods.
|
- Change `Error` internal design, removing several `Error::is_*` inspector methods.
|
||||||
|
- Change Redirect API:
|
||||||
|
- Renamed types to be part of the `redirect` module (for example, `reqwest::RedirectPolicy` is now `reqwest::redirect::Policy`).
|
||||||
|
- Removed `loop_detected` and `too_many_redirect` methods from `redirect::Attempt`, replaced with a generic `error` method.
|
||||||
|
- The default policy no longer specifically looks for redirect loops (but they should be caught by the maximum limit).
|
||||||
|
|
||||||
|
- Fix checking `HTTP_PROXY` environment variable if it the environment is from a CGI script.
|
||||||
|
- Fix removal of username/password of parsed proxy URL.
|
||||||
|
|
||||||
- Update `url` to v2.0.
|
- Update `url` to v2.0.
|
||||||
|
- Update `hyper` to v0.13.
|
||||||
|
- Update `http` to v0.2.
|
||||||
|
|
||||||
|
|
||||||
## v0.9.19
|
## v0.9.19
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reqwest"
|
name = "reqwest"
|
||||||
version = "0.10.0-alpha.2" # remember to update html_root_url
|
version = "0.10.0" # remember to update html_root_url
|
||||||
description = "higher level HTTP client library"
|
description = "higher level HTTP client library"
|
||||||
keywords = ["http", "request", "client"]
|
keywords = ["http", "request", "client"]
|
||||||
repository = "https://github.com/seanmonstar/reqwest"
|
repository = "https://github.com/seanmonstar/reqwest"
|
||||||
|
|||||||
@@ -14,10 +14,6 @@ An ergonomic, batteries-included HTTP Client for Rust.
|
|||||||
- Cookie Store
|
- Cookie Store
|
||||||
- [Changelog](CHANGELOG.md)
|
- [Changelog](CHANGELOG.md)
|
||||||
|
|
||||||
> *NOTE*: reqwest's [master](https://github.com/seanmonstar/reqwest) branch is currently
|
|
||||||
preparing breaking changes, for most recently released code, look to the
|
|
||||||
[0.9.x](https://github.com/seanmonstar/reqwest/tree/0.9.x) branch.
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
Async:
|
Async:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
#![cfg_attr(test, deny(warnings))]
|
#![cfg_attr(test, deny(warnings))]
|
||||||
#![doc(html_root_url = "https://docs.rs/reqwest/0.10.0-alpha.2")]
|
#![doc(html_root_url = "https://docs.rs/reqwest/0.10.0")]
|
||||||
|
|
||||||
//! # reqwest
|
//! # reqwest
|
||||||
//!
|
//!
|
||||||
|
|||||||
Reference in New Issue
Block a user