reqwest-middleware
reqwest-middleware copied to clipboard
Implement Error.status()
Motivations
The local Error
is a simple enum between the underlying reqwest::Error
and middleware errors. It would be nice if this Error
implemented the same interface as reqwest::Error
, esp adding .status()
c.f. https://github.com/oxidecomputer/progenitor/pull/252 for why this could be useful.
Solution
Alternatives
Additional context
Great idea, thanks for the suggestion. I have no opposition to this