File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 6
6
use Psr \Http \Message \ServerRequestInterface ;
7
7
8
8
/**
9
- * An HTTP middleware component participates in processing an HTTP message,
10
- * either by acting on the request or the response. This interface defines the
11
- * methods required to use the middleware.
9
+ * Participant in processing a server request and response.
10
+ *
11
+ * An HTTP middleware component participates in processing an HTTP message:
12
+ * by acting on the request, generating the response, or forwarding the
13
+ * request to a subsequent middleware and possibly acting on its response.
12
14
*/
13
15
interface MiddlewareInterface
14
16
{
15
17
/**
16
- * Process an incoming server request and return a response, optionally delegating
17
- * response creation to a handler.
18
+ * Process an incoming server request.
19
+ *
20
+ * Processes an incoming server request in order to produce a response.
21
+ * If unable to produce the response itself, it may delegate to the provided
22
+ * request handler to do so.
18
23
*/
19
24
public function process (ServerRequestInterface $ request , RequestHandlerInterface $ handler ): ResponseInterface ;
20
25
}
You can’t perform that action at this time.
0 commit comments