blob: 393d9623b2009e6fbafb413f1d6c234fb363fba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<?php
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
$resp->getBody()->write(strtoupper($req->getHeaderLine('input')));
return $resp->withAddedHeader("Header", $req->getQueryParams()['hello']);
}
|