Skip to content

Commit d0d2b47

Browse files
committed
docs: add note about sponsors/support
1 parent 2fe53c5 commit d0d2b47

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

README.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77

88
An ergonomic, batteries-included HTTP Client for Rust.
99

10+
- Async and blocking `Client`s
1011
- Plain bodies, JSON, urlencoded, multipart
1112
- Customizable redirect policy
1213
- HTTP Proxies
1314
- HTTPS via system-native TLS (or optionally, rustls)
1415
- Cookie Store
1516
- WASM
16-
- [Changelog](CHANGELOG.md)
1717

1818

1919
## Example
@@ -43,25 +43,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4343
}
4444
```
4545

46-
## Blocking Client
46+
## Commercial Support
4747

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].
6549

6650
## Requirements
6751

@@ -93,3 +77,9 @@ Licensed under either of
9377
Unless you explicitly state otherwise, any contribution intentionally submitted
9478
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
9579
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

src/lib.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
//! - [The Rust Cookbook](https://rust-lang-nursery.github.io/rust-cookbook/web/clients.html)
2828
//! - [Reqwest Repository Examples](https://github.com/seanmonstar/reqwest/tree/master/examples)
2929
//!
30+
//! ## Commercial Support
31+
//!
32+
//! For private advice, support, reviews, access to the maintainer, and the
33+
//! like, reach out for [commercial support][sponsor].
34+
//!
3035
//! ## Making a GET request
3136
//!
3237
//! For a single request, you can use the [`get`][get] shortcut method.
@@ -215,7 +220,11 @@
215220
//! RUSTFLAGS="--cfg reqwest_unstable" cargo build
216221
//! ```
217222
//!
218-
//! [hyper]: http://hyper.rs
223+
//! ## Sponsors
224+
//!
225+
//! Support this project by becoming a [sponsor][].
226+
//!
227+
//! [hyper]: https://hyper.rs
219228
//! [blocking]: ./blocking/index.html
220229
//! [client]: ./struct.Client.html
221230
//! [response]: ./struct.Response.html
@@ -225,6 +234,7 @@
225234
//! [redirect]: crate::redirect
226235
//! [Proxy]: ./struct.Proxy.html
227236
//! [cargo-features]: https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-features-section
237+
//! [sponsor]: https://seanmonstar.com/sponsor
228238
229239
#[cfg(all(feature = "http3", not(reqwest_unstable)))]
230240
compile_error!(

0 commit comments

Comments
 (0)