Download the PHP package jarod2011/simple-concurrent-request-client without Composer
On this page you can find all versions of the php package jarod2011/simple-concurrent-request-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jarod2011/simple-concurrent-request-client
More information about jarod2011/simple-concurrent-request-client
Files in jarod2011/simple-concurrent-request-client
Download jarod2011/simple-concurrent-request-client
More information about jarod2011/simple-concurrent-request-client
Files in jarod2011/simple-concurrent-request-client
Vendor jarod2011
Package simple-concurrent-request-client
Short Description 一个基于guzzlehttp实现的并发请求的客户端,通过此终端可以完成并发去请求多个接口并统一拿到返回结果
License MIT
Package simple-concurrent-request-client
Short Description 一个基于guzzlehttp实现的并发请求的客户端,通过此终端可以完成并发去请求多个接口并统一拿到返回结果
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-concurrent-request-client
SimpleConcurrentRequestClient
SimpleConcurrentRequestClient是一个针对guzzle做的简单封装,可以很方便简单的实现多个接口调用请求并发执行并方便的获取每个调用结果。
安装
版本记录
版本v1.1.1 临时修复一个bug,为当前最新版本,建议更新到此版本,此版本修复了在RequestClient
中配置的header
、user-agent
等参数不能在并发请求中生效,修复后,可以通过RequestClient
中统一配置header
中的参数了,并增加了一个setPromise
方法,可以直接传入一个Promise
,而若使用了此方法则setRequest方法提供的请求将无效
版本v1.1 增加了针对https是否校验的方法,以及一个自定义client配置的方法
对于以下应用场景,比较适合
- 很多http接口需要调用,并且每个接口的调用对其他接口调用结果没有依赖性
- 多种三方接口调用,每种接口有不同的处理逻辑
一个简单的应用场景
多个请求同时调用
All versions of simple-concurrent-request-client with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
~7.4.3
The package jarod2011/simple-concurrent-request-client contains the following files
Loading the files please wait ....