Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topdown/http: handle http.send errors in-band
This change updates how errors from http.send are handled. By default, an error returned by `http.send` halts the policy evaluation. This commit allows users to return errors in the response object returned by `http.send` instead of halting evaluation. Fixes: #2187 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
- Loading branch information
1 parent
4851c4b
commit 63560e0
Showing
3 changed files
with
161 additions
and
12 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