summaryrefslogtreecommitdiff
path: root/tests/http
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-24 14:54:18 +0300
committerWolfy-J <[email protected]>2019-06-24 14:54:18 +0300
commit7c578ccb1d26b0fd0a4f3998b03966b0dfdc6b82 (patch)
treea356286075b5c57ca44142487c0277cfec126beb /tests/http
parentee2396c406aa4cc455248fc3febc026eb38efe24 (diff)
more tests
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/headers.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/http/headers.php b/tests/http/headers.php
new file mode 100644
index 00000000..c85d5caf
--- /dev/null
+++ b/tests/http/headers.php
@@ -0,0 +1,11 @@
+<?php
+
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ $resp->getBody()->write(json_encode($req->getHeaders()));
+
+ return $resp;
+} \ No newline at end of file