diff options
Diffstat (limited to 'tests/http/echo.php')
-rw-r--r-- | tests/http/echo.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/http/echo.php b/tests/http/echo.php new file mode 100644 index 00000000..7004ada0 --- /dev/null +++ b/tests/http/echo.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->withStatus(201); +}
\ No newline at end of file |