We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$saber = Swlib\Saber::create([ // 'base_uri' => 'http://localhost:9988', 'exception_report' => 0, 'use_pool' => 50 ]); $result = $saber->get('http://localhost:9988/', [ 'retry_time' => 3 ]);
如果 create 时不加 base_uri,会报如下错误:
The text was updated successfully, but these errors were encountered:
为什么要这么用呢 0.0
Sorry, something went wrong.
因为感觉在 get 方法中做会更友好,同样也可以根据 url 分析出 uri,不用强绑在实例中,Guzzle HTTP 组件也是采用这样的做法哦
No branches or pull requests
如果 create 时不加 base_uri,会报如下错误:
The text was updated successfully, but these errors were encountered: