|
7 | 7 |
|
8 | 8 | An ergonomic, batteries-included HTTP Client for Rust.
|
9 | 9 |
|
| 10 | +- Async and blocking `Client`s |
10 | 11 | - Plain bodies, JSON, urlencoded, multipart
|
11 | 12 | - Customizable redirect policy
|
12 | 13 | - HTTP Proxies
|
13 | 14 | - HTTPS via system-native TLS (or optionally, rustls)
|
14 | 15 | - Cookie Store
|
15 | 16 | - WASM
|
16 |
| -- [Changelog](CHANGELOG.md) |
17 | 17 |
|
18 | 18 |
|
19 | 19 | ## Example
|
@@ -43,25 +43,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
43 | 43 | }
|
44 | 44 | ```
|
45 | 45 |
|
46 |
| -## Blocking Client |
| 46 | +## Commercial Support |
47 | 47 |
|
48 |
| -There is an optional "blocking" client API that can be enabled: |
49 |
| - |
50 |
| -```toml |
51 |
| -[dependencies] |
52 |
| -reqwest = { version = "0.11", features = ["blocking", "json"] } |
53 |
| -``` |
54 |
| - |
55 |
| -```rust,no_run |
56 |
| -use std::collections::HashMap; |
57 |
| -
|
58 |
| -fn main() -> Result<(), Box<dyn std::error::Error>> { |
59 |
| - let resp = reqwest::blocking::get("https://httpbin.org/ip")? |
60 |
| - .json::<HashMap<String, String>>()?; |
61 |
| - println!("{resp:#?}"); |
62 |
| - Ok(()) |
63 |
| -} |
64 |
| -``` |
| 48 | +For private advice, support, reviews, access to the maintainer, and the like, reach out for [commercial support][sponsor]. |
65 | 49 |
|
66 | 50 | ## Requirements
|
67 | 51 |
|
@@ -93,3 +77,9 @@ Licensed under either of
|
93 | 77 | Unless you explicitly state otherwise, any contribution intentionally submitted
|
94 | 78 | for inclusion in the work by you, as defined in the Apache-2.0 license, shall
|
95 | 79 | be dual licensed as above, without any additional terms or conditions.
|
| 80 | + |
| 81 | +## Sponsors |
| 82 | + |
| 83 | +Support this project by becoming a [sponsor][]. |
| 84 | + |
| 85 | +[sponsor]: https://seanmonstar.com/sponsor |
0 commit comments