php - HttpClient 需要更长的时间来返回数组响应
问题描述
我正在使用HttpClient
此请求调用外部 API 大约需要 30 秒来响应数组。有什么方法可以减少这个响应时间吗?
$response = $this->httpClient->request('GET', $url, [
'x-auth-token' => $this->session->get('token'),
'x-auth-key' => $token
]);
return $response->toArray();
解决方案
推荐阅读
- java - WSo2IS 教程 kmarketAtrrFinder 项目代码和构建
- delphi - 如何避免在 .pas 文件中的表单定义中编写组件
- javascript - 条件渲染在反应的 tbody 中不起作用
- javascript - 我有一个文本框并且作为用户我想允许使用 html 输入 0 到 0.3 之间的数字
- c#-4.0 - EventHubTrigger 函数应用,将事件中心名称和消费者组名称动态传递给事件中心属性
- c - long long int 变量没有输出
- reactjs - Airbnb/react-dates 与 redux-form
- android - LiveDataReactiveStreams 到 MutableLiveData
- elasticsearch - Elastic Search 6.4 在创建自定义字符过滤器时抛出错误
- java - 将事件添加到“Material-Calendar-View”插件日历的问题