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
It would be very handy to be able to create a reqwest client that could only make "read" requests (e.g., GET or HEAD). I imagine we could use Method::is_safe() for this?
This would allow applications to more safely implement "dry run" or "debug-only" clients that couldn't accidentally do something destructive to the server.
The text was updated successfully, but these errors were encountered:
Though, I'm leaning more towards an implementation not being something directly in reqwest, but rather a Middleware. That combined with my goal of making reqwest integrate with Tower would mean anyone could get that behavior wrapped around any stacked client.
It would be very handy to be able to create a reqwest client that could only make "read" requests (e.g.,
GET
orHEAD
). I imagine we could use Method::is_safe() for this?This would allow applications to more safely implement "dry run" or "debug-only" clients that couldn't accidentally do something destructive to the server.
The text was updated successfully, but these errors were encountered: