http:符合 PSR-7 的 http 库

时间:2021-06-17 03:07:52
【文件属性】:
文件名称:http:符合 PSR-7 的 http 库
文件大小:41KB
文件格式:ZIP
更新时间:2021-06-17 03:07:52
PHP 网址 符合提议的消息实现的 HTTP 库,基本上受到启发 安装 通过作曲家: { " require " : { " kemist/http " : " 1.0.* " } } HTTP 客户端 该包包含一个基于 cURL 和基于套接字的 HTTP 客户端类。 基本 GET 示例: <?php $ request = new Kemist \ Http \ Request ( 'http://httpbin.org/get?sd=43' , 'GET' , array ( 'accept' => 'text/html' , 'connection' => 'close' )); // cURL client $ client = new Kemist \ Http \ Client \ CurlClient (); // OR Socket-base
【文件预览】:
http-master
----src()
--------Http()
----.travis.yml(364B)
----phpunit.xml(768B)
----README.md(4KB)
----tests()
--------AbstractClientTest.php(6KB)
--------UriTest.php(4KB)
--------ServerTest.php(2KB)
--------InputStreamTest.php(2KB)
--------ServerResponseTest.php(701B)
--------RequestTest.php(3KB)
--------StreamTest.php(4KB)
--------ServerRequestTest.php(7KB)
--------ResponseTest.php(5KB)
--------AbstractMessageTest.php(3KB)
--------bootstrap.php(55B)
--------IsNotModifiedMiddlewareTest.php(2KB)
----.gitignore(35B)
----composer.json(430B)

网友评论