create RequestHandlerInterface

This commit is contained in:
2026-06-05 16:28:31 -04:00
parent 9ca70f344f
commit b2260c9024
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
"type": "library", "type": "library",
"require": { "require": {
"php": "^8.5", "php": "^8.5",
"psr/http-message": "^2.0" "psr/http-message": "^2.0",
"psr/http-server-handler": "^1.0"
}, },
"license": "MIT", "license": "MIT",
"autoload": { "autoload": {
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace Potter\Request;
use \Psr\Http\Message\ResponseInterface as PsrResponseInterface;
use \Psr\Http\Server\RequestHandlerInterface as PsrRequestHandlerInterface;
use \Psr\Http\Message\ServerRequestInterface as PsrServerRequestInterface;
interface RequestHandlerInterface extends PsrRequestHandlerInterface
{
public function handle(PsrServerRequestInterface $request): PsrResponseInterface;
}