summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-30 18:47:20 +0300
committerWolfy-J <[email protected]>2018-09-30 18:47:20 +0300
commitc7b6b81c044305a3d65d1d53eb7f7bc172b37bf2 (patch)
tree186565b7602da6cbf851375afeda7f6b98ccfacb /tests
parent06f0a97e81905c880dc83813dd5b7f6f458ca724 (diff)
more tests
Diffstat (limited to 'tests')
-rw-r--r--tests/http/push.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/http/push.php b/tests/http/push.php
new file mode 100644
index 00000000..bf56dbb6
--- /dev/null
+++ b/tests/http/push.php
@@ -0,0 +1,10 @@
+<?php
+
+use \Psr\Http\Message\ServerRequestInterface;
+use \Psr\Http\Message\ResponseInterface;
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ $resp->getBody()->write(strtoupper($req->getQueryParams()['hello']));
+ return $resp->withAddedHeader("http2-push", __FILE__)->withStatus(201);
+} \ No newline at end of file