-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking change: provide more context in error::Error
We'd like top provide the caller with more context to, say, print key portions of a response in debug mode or emit metrics. Unfortunatley, the key reqwest Response methods consume self and make the value largely useless for an error that wraps it. So let's drop the Response part of copy over the request URL, header map and body. The first two do not consume self.
- Loading branch information
1 parent
f8f6300
commit 779a58b
Showing
3 changed files
with
160 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.