cognesy/instructor-http-client
最新稳定版本:v2.3.1
Composer 安装命令:
composer require cognesy/instructor-http-client
包简介
Polyglot's unified HTTP connectivity layer
README 文档
README
Minimal HTTP transport for sync and streaming requests.
Example
use Cognesy\Http\Data\HttpRequest; use Cognesy\Http\HttpClient; $client = HttpClient::default(); $response = $client->send(new HttpRequest( url: 'https://api.example.com/health', method: 'GET', headers: ['Accept' => 'application/json'], body: '', options: [], ))->get(); echo $response->statusCode();
Docs
packages/http-client/docs/1-overview.mdpackages/http-client/docs/2-getting-started.mdpackages/http-client/docs/3-making-requests.mdpackages/http-client/docs/4-handling-responses.mdpackages/http-client/docs/5-streaming-responses.mdpackages/http-client/docs/10-middleware.md
Pooling lives in packages/http-pool.
统计信息
- 总下载量: 476
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-22