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均支持添加参数,相应方法为:
设置消息体序列化器
可通过实现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
^8.3
The package verdient/http contains the following files
Loading the files please wait ...