mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-26 02:46:30 +00:00
✨ Added Default
derive to allow for same functionality as base type (#179)
This commit is contained in:
parent
053d329e8b
commit
47f52327e8
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ impl ClientBuilder {
|
||||||
|
|
||||||
/// `ClientWithMiddleware` is a wrapper around [`reqwest::Client`] which runs middleware on every
|
/// `ClientWithMiddleware` is a wrapper around [`reqwest::Client`] which runs middleware on every
|
||||||
/// request.
|
/// request.
|
||||||
#[derive(Clone)]
|
#[derive(Clone, Default)]
|
||||||
pub struct ClientWithMiddleware {
|
pub struct ClientWithMiddleware {
|
||||||
inner: reqwest::Client,
|
inner: reqwest::Client,
|
||||||
middleware_stack: Box<[Arc<dyn Middleware>]>,
|
middleware_stack: Box<[Arc<dyn Middleware>]>,
|
||||||
|
|
Loading…
Reference in a new issue