summaryrefslogtreecommitdiff
path: root/php-src/tests/http/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'php-src/tests/http/header.php')
-rw-r--r--php-src/tests/http/header.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/php-src/tests/http/header.php b/php-src/tests/http/header.php
new file mode 100644
index 00000000..9bb15ccd
--- /dev/null
+++ b/php-src/tests/http/header.php
@@ -0,0 +1,9 @@
+<?php
+
+use \Psr\Http\Message\ServerRequestInterface;
+use \Psr\Http\Message\ResponseInterface;
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ return $resp->withAddedHeader("Header", $req->getQueryParams()['hello']);
+} \ No newline at end of file