diff options
author | Wolfy-J <[email protected]> | 2018-01-28 15:25:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 15:25:57 +0300 |
commit | cb7629dbe105e6ee2bf9b2b1f3619dff596d0aa1 (patch) | |
tree | 26a5d6c2077b1cd77878fa009ff4fca448827e5b /tests | |
parent | a28ac27bd762ad65ff4cbbeaa8e2b03c9f0d1c32 (diff) |
head parsing for raw data
Diffstat (limited to 'tests')
-rw-r--r-- | tests/head.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/head.php b/tests/head.php new file mode 100644 index 00000000..4f4e4061 --- /dev/null +++ b/tests/head.php @@ -0,0 +1,17 @@ +<?php +/** + * @var Goridge\RelayInterface $relay + */ + +use Spiral\Goridge; +use Spiral\RoadRunner; + +$rr = new RoadRunner\Worker($relay); + +while ($in = $rr->receive($ctx)) { + try { + $rr->send("", (string)$ctx); + } catch (\Throwable $e) { + $rr->error((string)$e); + } +}
\ No newline at end of file |