summaryrefslogtreecommitdiff
path: root/tests/http/echoDelay.php
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-01-05 13:35:58 +0300
committerWolfy-J <[email protected]>2019-01-05 13:35:58 +0300
commit04f7ac73c477938b7390ec6ec101d0e4bcc8cd80 (patch)
tree361c8cd8a00824d0b2e5003c6a5978f630c20469 /tests/http/echoDelay.php
parent46009112a783a1fdae95e0a061d4c8c41a1c8ff1 (diff)
second set of patches
Diffstat (limited to 'tests/http/echoDelay.php')
-rw-r--r--tests/http/echoDelay.php11
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