基于PSR-18的PSR-7消息交换的轻量级HTTP客户端。

2.0 2020-04-23 07:23 UTC

This package is auto-updated.

Last update: 2024-08-23 16:59:26 UTC


README

轻量级 HTTP 客户端,用于交换 PSR-7 消息,基于 PSR-18

Dakiya: डाकिया (Postman)

Build status Code Coverage Latest Version Downloads PHP Version License

SensioLabsInsight

用法

<?php

$client = new Dakiya\Client(new Sandesh\ResponseFactory());

$request = (new Sandesh\RequestFactory())->createRequest('GET', 'https://example.com/');
$response = $client->sendRequest($request);
if ($response->getStatusCode() === 200) {
    // ...do as required
}

文档

要查看安装和使用说明,请访问此 Wiki

许可证

请参阅 LICENSE.md 文件。