Download the PHP package verdient/http without Composer
On this page you can find all versions of the php package verdient/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download verdient/http
More information about verdient/http
Files in verdient/http
Download verdient/http
More information about verdient/http
Files in verdient/http
Vendor verdient
Package http
Short Description php http client
License MIT
Homepage https://github.com/Verdient/http
Package http
Short Description php http client
License MIT
Homepage https://github.com/Verdient/http
Please rate this library. Is it a good library?
Informations about the package http
HTTP Client
HTTP 客户端
创建新的请求实例
设置请求参数
添加参数
Header
, Query
, Body
均支持添加参数,相应方法为:
- addHeader($name, $value)
- addQuery($name, $value)
- addBody($name, $value)
设置消息体序列化器
可通过实现Verdient\http\serializer\body\BodySerializerInterface
来实现任意的消息体序列化
设置查询参数序列化器
可通过实现Verdient\http\serializer\SerializerInterface
来实现任意的查询参数序列化
直接设置消息体
若消息体格式并非 Key-Value 格式或其他需要直接设置消息体的情况,可以直接调用
setContent
与setBody
为互斥关系,调用的setContent
会清除setBody
设置的内容,反之亦然
发送请求
响应
批量请求
All versions of http with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package verdient/http contains the following files
Loading the files please wait ....