Skip to content

Commit 37bd5a3

Browse files
committed
Add to README text about custom HttpClient and link to example.
1 parent a14e40a commit 37bd5a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@
219219
//! "query": "wonder"
220220
//! }
221221
//! ```
222+
//!
223+
//! ### Using users customized HttpClient <!-- omit in TOC -->
224+
//!
225+
//! If you want to change the `HttpClient` you can incorporate using the `Client::new_with_client` method.
226+
//! To use it, you need to implement the `HttpClient Trait`(`isahc` is used by default).
227+
//! There are [using-reqwest-example](./examples/cli-app-with-reqwest) of using `reqwest`.
222228
223229
#![warn(clippy::all)]
224230
#![allow(clippy::needless_doctest_main)]

0 commit comments

Comments
 (0)