-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Add new throw helper methods to the HTTP Client (#45704)
* [9.x] Added throwIfStatus method to only throw an exception if a specific status code is returned from the HTTP response * [9.x] Refactored implementation for throwIfStatus method and added throwUnlessStatus method * [9.x] Added test case for throwUnlessStatus method * [9.x] Refactored tests to follow standard of other test cases * [9.x] Added throwIfClientError and throwIfServerError methods * allow callables Co-authored-by: Taylor Otwell <taylor@laravel.com>
- Loading branch information
1 parent
53ab77d
commit 80a66e6
Showing
3 changed files
with
282 additions
and
0 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