We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e4a6b5 + 161550b commit 538a8f4Copy full SHA for 538a8f4
examples/63-server-streaming-request.php
@@ -9,7 +9,8 @@
9
// Note how this example uses the advanced `StreamingRequestMiddleware` to allow streaming
10
// the incoming HTTP request. This very simple example merely counts the size
11
// of the streaming body, it does not otherwise buffer its contents in memory.
12
-$server = new React\Http\Server(array(
+$server = new React\Http\Server(
13
+ $loop,
14
new React\Http\Middleware\StreamingRequestMiddleware(),
15
function (Psr\Http\Message\ServerRequestInterface $request) {
16
$body = $request->getBody();
@@ -44,7 +45,7 @@ function (Psr\Http\Message\ServerRequestInterface $request) {
44
45
});
46
47
}
-));
48
+);
49
50
$server->on('error', 'printf');
51
0 commit comments