This pull request adds a new extend function to the ClientBuilder which takes a ClientWithMiddleware instance and appends its middleware and initialiser stacks to the ClientBuilder instance it's being called on.
This is very convenient when reqwest_middleware is being used on libraries that accept a ClientWithMiddleware, but need to append their own middlewares to the client that's being passed down from the app.
This pull request adds a new
extend
function to theClientBuilder
which takes aClientWithMiddleware
instance and appends its middleware and initialiser stacks to theClientBuilder
instance it's being called on.This is very convenient when
reqwest_middleware
is being used on libraries that accept aClientWithMiddleware
, but need to append their own middlewares to the client that's being passed down from the app.