From eeef5b61040ba734154c716ed3fa9e99b45191bb Mon Sep 17 00:00:00 2001 From: Anton Makieiev Date: Fri, 2 Oct 2020 20:46:07 +0300 Subject: [PATCH] Update reactphp/http up to 1.0.0 --- composer.json | 2 +- composer.lock | 53 ++++++++++++++++++++++------ tests/HtmlCompressMiddlewareTest.php | 4 +-- 3 files changed, 46 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index 3731886..dc13590 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "require": { "php": "^7.2", "psr/http-message": "^1.0", - "react/http": "^0.8.0", + "react/http": "^1.0.0", "react/promise": "^2.7", "wyrihaximus/html-compress": "^1.2 || ^2.0 || ^3.0" }, diff --git a/composer.lock b/composer.lock index 39ad145..7d4f477 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a984599ffe64e060051c6c71307d7004", + "content-hash": "be54ea2f157f8a9a3284308f0c0d2fe0", "packages": [ { "name": "evenement/evenement", @@ -362,6 +362,7 @@ "javascript", "minification" ], + "abandoned": true, "time": "2016-04-19T09:28:22+00:00" }, { @@ -542,30 +543,35 @@ }, { "name": "react/http", - "version": "v0.8.6", + "version": "v1.0.0", "source": { "type": "git", "url": "https://github.com/reactphp/http.git", - "reference": "248202e57195d06a4375f6d2f5c5b9ff9da3ea9e" + "reference": "865694453c95122f8972b9ed7961efb3c517fc5e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/http/zipball/248202e57195d06a4375f6d2f5c5b9ff9da3ea9e", - "reference": "248202e57195d06a4375f6d2f5c5b9ff9da3ea9e", + "url": "https://api.github.com/repos/reactphp/http/zipball/865694453c95122f8972b9ed7961efb3c517fc5e", + "reference": "865694453c95122f8972b9ed7961efb3c517fc5e", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "php": ">=5.3.0", + "psr/http-message": "^1.0", + "react/event-loop": "^1.0 || ^0.5", "react/promise": "^2.3 || ^1.2.1", "react/promise-stream": "^1.1", - "react/socket": "^1.0 || ^0.8.3", - "react/stream": "^1.0 || ^0.7.1", + "react/socket": "^1.1", + "react/stream": "^1.0 || ^0.7.5", "ringcentral/psr7": "^1.2" }, "require-dev": { "clue/block-react": "^1.1", - "phpunit/phpunit": "^7.0 || ^6.4 || ^5.7 || ^4.8.35" + "clue/http-proxy-react": "^1.3", + "clue/reactphp-ssh-proxy": "^1.0", + "clue/socks-react": "^1.0", + "phpunit/phpunit": "^9.0 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { @@ -577,16 +583,43 @@ "license": [ "MIT" ], - "description": "Event-driven, streaming plaintext HTTP and secure HTTPS server for ReactPHP", + "authors": [ + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "Event-driven, streaming HTTP client and server implementation for ReactPHP", "keywords": [ + "async", + "client", "event-driven", "http", + "http client", + "http server", "https", + "psr-7", "reactphp", "server", "streaming" ], - "time": "2020-01-12T13:15:06+00:00" + "time": "2020-07-11T13:29:43+00:00" }, { "name": "react/promise", diff --git a/tests/HtmlCompressMiddlewareTest.php b/tests/HtmlCompressMiddlewareTest.php index 46f4e62..3892bb7 100644 --- a/tests/HtmlCompressMiddlewareTest.php +++ b/tests/HtmlCompressMiddlewareTest.php @@ -7,8 +7,8 @@ use Psr\Http\Message\ServerRequestInterface; use React\EventLoop\Factory; use React\Http\Io\HttpBodyStream; -use React\Http\Io\ServerRequest; -use React\Http\Response; +use React\Http\Message\Response; +use React\Http\Message\ServerRequest; use function React\Promise\resolve; use React\Stream\ThroughStream; use function RingCentral\Psr7\stream_for;