saxulum/saxulum-http-client-adapter-vinelab
最新稳定版本:1.0.1
Composer 安装命令:
composer require saxulum/saxulum-http-client-adapter-vinelab
包简介
Saxulum Http Client Adapter Vinelab
README 文档
README
Features
- Provides a http client interface adapter for vinelab
Requirements
- PHP 5.3+
- Vinelab ~1.1 (PHP 5.4+)
Installation
Through Composer as saxulum/saxulum-http-client-adapter-vinelab.
Usage
use Saxulum\HttpClient\Vinelab\HttpClient;
use Saxulum\HttpClient\Request;
$httpClient = new HttpClient();
$response = $httpClient->request(new Request(
'1.1',
Request::METHOD_GET,
'http://en.wikipedia.org',
array(
'Connection' => 'close',
)
));
You can inject your own vinelab client instance while creating the http client instance.
use Vinelab\Http\Client;
use Saxulum\HttpClient\Vinelab\HttpClient;
$client = new Client;
$httpClient = new HttpClient($client);
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-27