nyholm/http-client

一个轻量级且超快的HTTP客户端

0.1.0 2016-07-13 14:14 UTC

This package is auto-updated.

Last update: 2024-08-25 06:48:08 UTC


README

Latest Version Software License Total Downloads

一个超级轻量级的HTTP客户端,用于发送PSR-7 HTTP消息。

安装

通过Composer

$ composer require nyholm/http-client

用法

// Create a PSR-7 request
$request = MessageFactoryDiscovery::find()->createRequest('GET', 'http://example.com');

// You will get back a PSR-7 response
$response = (new Client)->sendRequest($request);

文档

此客户端不进行任何配置。如果您需要更多功能,应使用HTTPlug的插件。请参阅他们的文档

MIT许可证(MIT)。有关更多信息,请参阅许可文件