Returning and using an reqwest::Response from an async method
I am hoping to improve some logic that crafts and returns a Future for a reqwest::Response
by adding in logic to catch, reauthenticate, and retry when the response is a 401. However, even before I get to that retry logic, my attempts to move the creation of the reqwest::Response
into an async method (in which the reauthentication logic would be placed) are failing with lifetime errors.