summaryrefslogtreecommitdiff
path: root/php-src/tests/http/pid.php
blob: 1cc322bf1b171f8e544e3cafeb30d38bd5868d11 (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(getmypid());

    return $resp;
}