Skip to content

Commit 931a649

Browse files
committed
Prepare for split between handler and middleware
1 parent b49e1f9 commit 931a649

File tree

5 files changed

+8
-43
lines changed

5 files changed

+8
-43
lines changed

.pullapprove.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
HTTP Server Middleware
22
======================
33

4-
This is an implementation of the proposed [PSR-15][psr-15]. Please refer to the
4+
Provides the `RequestHandlerInterface` of [PSR-15][psr-15]. Please refer to the
55
proposal for a description.
66

7-
[psr-15]: https://github.com/php-fig/fig-standards/tree/master/proposed/http-middleware
7+
[psr-15]: https://github.com/php-fig/fig-standards/tree/master/proposed/http-handlers

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"name": "http-interop/http-middleware",
3-
"description": "Common interface for HTTP server-side middleware",
2+
"name": "http-interop/http-server-handler",
3+
"description": "Common interface for HTTP server-side request handler",
44
"keywords": [
55
"psr",
66
"psr-7",
77
"psr-15",
88
"http",
9-
"middleware",
9+
"server",
10+
"handler",
1011
"request",
1112
"response"
1213
],
@@ -18,7 +19,7 @@
1819
}
1920
],
2021
"require": {
21-
"php": ">=5.3.0",
22+
"php": ">=7.0",
2223
"psr/http-message": "^1.0"
2324
},
2425
"autoload": {

src/MiddlewareInterface.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/RequestHandlerInterface.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ interface RequestHandlerInterface
1313
{
1414
/**
1515
* Handle the request and return a response.
16-
*
17-
* @param ServerRequestInterface $request
18-
*
19-
* @return ResponseInterface
2016
*/
21-
public function handle(ServerRequestInterface $request);
17+
public function handle(ServerRequestInterface $request): ResponseInterface;
2218
}

0 commit comments

Comments
 (0)