diff options
author | Wolfy-J <[email protected]> | 2018-06-13 23:46:13 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2018-06-13 23:46:13 +0300 |
commit | c3ccb29fe412baa8c4b02a1630f3a4a040ab722c (patch) | |
tree | 7a61db95d8e4d02ac5740d593ed708358f34949a /php-src/tests/http/echo.php | |
parent | 50f820833eeef8518b3b978b33c6f20391225162 (diff) | |
parent | 8ab8c64413ded038e3c8816647209c3b961b3a35 (diff) |
Merge pull request #9 from spiral/develop
HTTP
Diffstat (limited to 'php-src/tests/http/echo.php')
-rw-r--r-- | php-src/tests/http/echo.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/php-src/tests/http/echo.php b/php-src/tests/http/echo.php new file mode 100644 index 00000000..7004ada0 --- /dev/null +++ b/php-src/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 |