Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Request_Client triggers callbacks on presence of specified headers [r…
…efs #4353] Request_Client checks the server response and triggers user-definable callbacks when specified headers are present. The existing logic for following redirects is implemented as a callback - other uses would include for eg dealing with a WWW-Authenticate header to refresh an OAuth token. Callbacks can return a request (which will be executed with the same callbacks and client parameters as the original request) or a response.
- Loading branch information
Showing
2 changed files
with
224 additions
and
38 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