poirot/http
Composer 安装命令:
composer require poirot/http
包简介
HTTP Request and Response .
README 文档
README
Build Http Request From Builder
Builder Support String or Array Settings.
$reqStr =<<< DOC GET /api/v1.1/page/search HTTP/1.1 Host: site.com Cache-Control: no-cache DOC; $request = new \Poirot\Http\HttpRequest( new BuildHttpRequest(BuildHttpRequest::parseWith($reqStr)) );
Headers
HeaderFactory::of('WWW-Authenticate: Basic realm="admin_panel"'); HeaderFactory::of(['WWW-Authenticate', 'Basic realm="admin_panel"']); // options of specific header as plugin HeaderFactory::of('WWW-Authenticate' => ['header_line' => 'Basic realm="admin_panel"']);
统计信息
- 总下载量: 352
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 1
其他信息
- 授权协议: Unknown
- 更新时间: 2015-05-17