summaryrefslogtreecommitdiff
path: root/tests/http/request-uri.php
blob: d4c8755183c90372ae331ebfa5e5f760db75c2fe (plain)
1
2
3
4
5
6
7
8
9
10
<?php

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
    $resp->getBody()->write($_SERVER['REQUEST_URI']);
    return $resp;
}