This commit is contained in:
Sean McArthur
2018-02-15 12:20:49 -08:00
parent 7db860759d
commit aed318cb75
3 changed files with 14 additions and 9 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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.