diff options
Diffstat (limited to 'plugins/gzip/tests/psr-worker.php')
-rw-r--r-- | plugins/gzip/tests/psr-worker.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/gzip/tests/psr-worker.php b/plugins/gzip/tests/psr-worker.php deleted file mode 100644 index ed936bde..00000000 --- a/plugins/gzip/tests/psr-worker.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php -/** - * @var Goridge\RelayInterface $relay - */ -use Spiral\Goridge; -use Spiral\RoadRunner; - -ini_set('display_errors', 'stderr'); -require dirname(__DIR__) . "/../../vendor_php/autoload.php"; - -$worker = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT)); -$psr7 = new RoadRunner\PSR7Client($worker); - -while ($req = $psr7->acceptRequest()) { - try { - $resp = new \Zend\Diactoros\Response(); - $resp->getBody()->write(str_repeat("hello world", 1000)); - - $psr7->respond($resp); - } catch (\Throwable $e) { - $psr7->getWorker()->error((string)$e); - } -}
\ No newline at end of file |