-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use internal body if available for returning the response in it…
…s original form as much as possible (#145) * feat: define getInternalBody function to get the internal body of a response This change cherry-picks some of the following commits b5ba8dd Thanks to @tangye1234 for the original implementation. * feat: use internal body if available for returning the response in its original form as much as possible * refactor: simplify try section for handleResponseError() * refactor: remove redundant variable "isCached"
- Loading branch information
Showing
3 changed files
with
174 additions
and
52 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
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