blob: bf56dbb6290fa612b404b865165ef9bf8b5b226a (
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->withAddedHeader("http2-push", __FILE__)->withStatus(201);
}
|