You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
535 B
23 lines
535 B
<?php
|
|
|
|
namespace Psr\Http\Server;
|
|
|
|
use Psr\Http\Message\ResponseInterface;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
|
|
/**
|
|
* Handles a server request and produces a response.
|
|
*
|
|
* An HTTP request handler process an HTTP request in order to produce an
|
|
* HTTP response.
|
|
*/
|
|
interface RequestHandlerInterface
|
|
{
|
|
/**
|
|
* Handles a request and produces a response.
|
|
*
|
|
* May call other collaborating code to generate the response.
|
|
*/
|
|
public function handle(ServerRequestInterface $request): ResponseInterface;
|
|
}
|