Skip to content

Commit ce481e9

Browse files
committed
Upgrade to react/http 1.0
1 parent 693173d commit ce481e9

File tree

3 files changed

+49
-12
lines changed

3 files changed

+49
-12
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"react-parallel/streams": "dev-master",
2323
"react-parallel/worker-pool": "dev-master",
2424
"react/event-loop": "^1.1",
25-
"react/http": "^0.8.6",
25+
"react/http": "^1.0",
2626
"react/promise": "^2.7",
2727
"reactivex/rxphp": "^2.0",
2828
"wyrihaximus/constants": "^1.5",

composer.lock

Lines changed: 41 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/ResponseMiddlewareStub.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Psr\Http\Message\ServerRequestInterface;
99
use Psr\Http\Server\MiddlewareInterface;
1010
use Psr\Http\Server\RequestHandlerInterface;
11-
use React\Http\Response;
11+
use React\Http\Message\Response;
1212

1313
/**
1414
* @internal
@@ -17,6 +17,11 @@ final class ResponseMiddlewareStub implements MiddlewareInterface
1717
{
1818
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
1919
{
20-
return (new Response())->withAddedHeader('__CLASS__', self::class);
20+
return new Response(
21+
200,
22+
[
23+
'__CLASS__' => self::class,
24+
]
25+
);
2126
}
2227
}

0 commit comments

Comments
 (0)