diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fd57ab..f3a2672 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## v0.8.5 + +### Features + +- Try to auto-detect encoding in `Response::text()`. +- Add `Certificate::from_pem` to load PEM encoded client certificates. +- Allow unsized types in `query`, `form`, and `json`. +- Add `unstable::async::RequestBuilder::query`, mirroring the stable builder method. + ## v0.8.4 ### Features diff --git a/Cargo.toml b/Cargo.toml index be9c2ad..1795d3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "reqwest" -version = "0.8.4" # remember to update html_root_url +version = "0.8.5" # remember to update html_root_url description = "higher level HTTP client library" keywords = ["http", "request", "client"] repository = "https://github.com/seanmonstar/reqwest" diff --git a/src/lib.rs b/src/lib.rs index d4bab21..655ead5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ #![deny(warnings)] #![deny(missing_docs)] #![deny(missing_debug_implementations)] -#![doc(html_root_url = "https://docs.rs/reqwest/0.8.4")] +#![doc(html_root_url = "https://docs.rs/reqwest/0.8.5")] //! # reqwest //! @@ -30,22 +30,18 @@ //! For a single request, you can use the [`get`][get] shortcut method. //! //! ```rust -//! use std::io::Read; //! # use reqwest::{Error, Response}; //! //! # fn run() -> Result<(), Error> { -//! let mut resp = reqwest::get("https://www.rust-lang.org")?; -//! -//! assert!(resp.status().is_success()); -//! -//! let body = resp.text()?; +//! let text = reqwest::get("https://www.rust-lang.org")? +//! .text()?; //! //! println!("body = {:?}", body); //! # Ok(()) //! # } //! ``` //! -//! As you can see, reqwest's [`Response`][response] struct implements Rust's +//! Additionally, reqwest's [`Response`][response] struct implements Rust's //! `Read` trait, so many useful standard library and third party crates will //! have convenience methods that take a `Response` anywhere `T: Read` is //! acceptable.