-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rpc): Allow overriding the underlying
reqwest
client of the `H…
…ttpClient` (#1421) * feat(rpc): expose reqwest client Previously, the reqwest client for HttpClient would be unconditionally built by the internal builder, meaning that useful middleware such as tower could not be applied. This commits adds two ways to create the HttpClient with a custom reqwest::Client, either through new_from_parts, or using the builder. * Add changelog entry --------- Co-authored-by: Romain Ruetschi <romain@informal.systems>
- Loading branch information
1 parent
2135196
commit 04356a3
Showing
2 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `[tendermint-rpc]` Add a `client(reqwest::Client)` method on `transport::http::Builder` to override the underlying `reqwest` client. | ||
([\#1421](https://github.com/informalsystems/tendermint-rs/pull/1421)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters