summaryrefslogtreecommitdiff
path: root/tests/http/env.php
blob: 1e29926f7ce01ac165ed6bb6c5fc5fdc07a6d2b0 (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['ENV_KEY']);
    return $resp;
}