summaryrefslogtreecommitdiff
path: root/tests/http/stuck.php
blob: 2dea05720c8c23eac48ecfa9b763bbcd3f4b7f3f (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);
}