summaryrefslogtreecommitdiff
path: root/tests/http/push.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/http/push.php')
-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