diff options
author | Wolfy-J <[email protected]> | 2019-05-05 12:29:12 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-05 12:29:12 +0300 |
commit | e6acf9d57099c69ce58b1121716528825095814f (patch) | |
tree | e072766b682fa40521aeb4661094ea0779bb1123 /tests | |
parent | ee12d7b834b501beed56945a54fdabe8bbdd4570 (diff) |
testing limits
Diffstat (limited to 'tests')
-rw-r--r-- | tests/http/stuck.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/http/stuck.php b/tests/http/stuck.php new file mode 100644 index 00000000..7df8b0f7 --- /dev/null +++ b/tests/http/stuck.php @@ -0,0 +1,11 @@ +<?php + +use \Psr\Http\Message\ServerRequestInterface; +use \Psr\Http\Message\ResponseInterface; + +function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface +{ + sleep(10); + $resp->getBody()->write(strtoupper($req->getQueryParams()['hello'])); + return $resp->withStatus(201); +}
\ No newline at end of file |