Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
namespace Psr\Http\Server;
4
 
5
use Psr\Http\Message\ResponseInterface;
6
use Psr\Http\Message\ServerRequestInterface;
7
 
8
/**
9
 * Handles a server request and produces a response.
10
 *
11
 * An HTTP request handler process an HTTP request in order to produce an
12
 * HTTP response.
13
 */
14
interface RequestHandlerInterface
15
{
16
    /**
17
     * Handles a request and produces a response.
18
     *
19
     * May call other collaborating code to generate the response.
20
     */
21
    public function handle(ServerRequestInterface $request): ResponseInterface;
22
}