You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using some functions from outside of our project that require &reqwest::Client as an argument, but we're using middleware via ClientWithMiddleware, and there's no way to access the inner reqwest::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 implement AsRef<Client> for ClientWithMiddleware.