diff options
Diffstat (limited to 'tests/http/echoDelay.php')
-rw-r--r-- | tests/http/echoDelay.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/http/echoDelay.php b/tests/http/echoDelay.php new file mode 100644 index 00000000..2ee2b049 --- /dev/null +++ b/tests/http/echoDelay.php @@ -0,0 +1,11 @@ +<?php + +use \Psr\Http\Message\ServerRequestInterface; +use \Psr\Http\Message\ResponseInterface; + +function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface +{ + sleep(1); + $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); + return $resp->withStatus(201); +}
\ No newline at end of file |