diff options
author | Wolfy-J <[email protected]> | 2018-09-30 18:47:20 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-30 18:47:20 +0300 |
commit | c7b6b81c044305a3d65d1d53eb7f7bc172b37bf2 (patch) | |
tree | 186565b7602da6cbf851375afeda7f6b98ccfacb /tests/http | |
parent | 06f0a97e81905c880dc83813dd5b7f6f458ca724 (diff) |
more tests
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/push.php | 10 |
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 |