summaryrefslogtreecommitdiff
path: root/tests/http/stuck.php
blob: 7df8b0f7fecb144436b224cb7532698a929e23f9 (plain)
1
2
3
4
5
6
7
8
9
10
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);
}