summaryrefslogtreecommitdiff
path: root/tests/http/env.php
blob: 3755bdea5a4bc55c9ecdd1a44399e321b77f1130 (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;
}