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

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

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