v0.8.5
This commit is contained in:
		| @@ -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 | ## v0.8.4 | ||||||
|  |  | ||||||
| ### Features | ### Features | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| [package] | [package] | ||||||
| name = "reqwest" | 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" | 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" | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								src/lib.rs
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/lib.rs
									
									
									
									
									
								
							| @@ -1,7 +1,7 @@ | |||||||
| #![deny(warnings)] | #![deny(warnings)] | ||||||
| #![deny(missing_docs)] | #![deny(missing_docs)] | ||||||
| #![deny(missing_debug_implementations)] | #![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 | //! # reqwest | ||||||
| //! | //! | ||||||
| @@ -30,22 +30,18 @@ | |||||||
| //! For a single request, you can use the [`get`][get] shortcut method. | //! For a single request, you can use the [`get`][get] shortcut method. | ||||||
| //! | //! | ||||||
| //! ```rust | //! ```rust | ||||||
| //! use std::io::Read; |  | ||||||
| //! # use reqwest::{Error, Response}; | //! # use reqwest::{Error, Response}; | ||||||
| //! | //! | ||||||
| //! # fn run() -> Result<(), Error> { | //! # fn run() -> Result<(), Error> { | ||||||
| //! let mut resp = reqwest::get("https://www.rust-lang.org")?; | //! let text = reqwest::get("https://www.rust-lang.org")? | ||||||
| //! | //!     .text()?; | ||||||
| //! assert!(resp.status().is_success()); |  | ||||||
| //! |  | ||||||
| //! let body = resp.text()?; |  | ||||||
| //! | //! | ||||||
| //! println!("body = {:?}", body); | //! println!("body = {:?}", body); | ||||||
| //! # Ok(()) | //! # 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 | //! `Read` trait, so many useful standard library and third party crates will | ||||||
| //! have convenience methods that take a `Response` anywhere `T: Read` is | //! have convenience methods that take a `Response` anywhere `T: Read` is | ||||||
| //! acceptable. | //! acceptable. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user