diff options
author | Wolfy-J <[email protected]> | 2019-06-24 14:54:18 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-06-24 14:54:18 +0300 |
commit | 7c578ccb1d26b0fd0a4f3998b03966b0dfdc6b82 (patch) | |
tree | a356286075b5c57ca44142487c0277cfec126beb /tests | |
parent | ee2396c406aa4cc455248fc3febc026eb38efe24 (diff) |
more tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/http/headers.php | 11 |
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 |