22 lines
528 B
PHP
22 lines
528 B
PHP
<?php
|
|
|
|
namespace KTXC\Http\Middleware;
|
|
|
|
use KTXC\Http\Request\Request;
|
|
use KTXC\Http\Response\Response;
|
|
|
|
/**
|
|
* PSR-15 style middleware interface
|
|
*/
|
|
interface MiddlewareInterface
|
|
{
|
|
/**
|
|
* Process an incoming server request.
|
|
*
|
|
* @param Request $request The request to process
|
|
* @param RequestHandlerInterface $handler The next handler in the pipeline
|
|
* @return Response The response from processing
|
|
*/
|
|
public function process(Request $request, RequestHandlerInterface $handler): Response;
|
|
}
|