Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Easy Http SDK
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Back End
Easy Http SDK
Commits
d6f878ac
Commit
d6f878ac
authored
Feb 20, 2023
by
谢宇轩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 提供默认的API策略
parent
bdb3a68a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Option.php
src/Option.php
+5
-2
No files found.
src/Option.php
View file @
d6f878ac
...
...
@@ -3,6 +3,7 @@ declare(strict_types=1);
namespace
Jiwei\EasyHttpSdk
;
use
Jiwei\EasyHttpSdk\Policy\DefaultErrorHandlingPolicy
;
use
Jiwei\EasyHttpSdk\Policy\HandlingPolicyInterface
;
abstract
class
Option
...
...
@@ -35,8 +36,10 @@ abstract class Option
* 错误处理策略
* @return HandlingPolicyInterface
*/
abstract
public
function
errorHandlingPolicy
()
:
HandlingPolicyInterface
;
public
function
errorHandlingPolicy
()
:
HandlingPolicyInterface
{
return
new
DefaultErrorHandlingPolicy
();
}
/**
* @param string $appId
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment