Get access to inner client from ClientWithMiddleware
?
#203
Labels
enhancement
New feature or request
ClientWithMiddleware
?
#203
Motivations
I'm using some functions from outside of our project that require
&reqwest::Client
as an argument, but we're using middleware viaClientWithMiddleware
, and there's no way to access the innerreqwest::Client
to pass to this function.For these functions/situations, we do not care about running the middleware, just that we are reusing the same client.
Solution
Maybe a
ClientWithMiddleware.get_inner()
method, or implementAsRef<Client> for ClientWithMiddleware
.Alternatives
Additional context
The text was updated successfully, but these errors were encountered: