├── LICENSE ├── README.md ├── composer.json └── src └── RequestHandlerInterface.php /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 PHP Framework Interoperability Group 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | HTTP Server Request Handlers for Middleware 2 | =========================================== 3 | 4 | This repository holds the `RequestHandlerInterface` related to [PSR-15 (HTTP Server Request Handlers)][psr-url]. 5 | 6 | Note that this is not a Server Request Handler implementation of its own. It is merely the interface that describe a Server Request Handler. 7 | 8 | The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist. 9 | 10 | [psr-url]: https://www.php-fig.org/psr/psr-15/ 11 | [package-url]: https://packagist.org/packages/psr/http-server-handler 12 | [implementation-url]: https://packagist.org/providers/psr/http-server-handler-implementation 13 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-server-handler", 3 | "description": "Common interface for HTTP server-side request handler", 4 | "keywords": [ 5 | "psr", 6 | "psr-7", 7 | "psr-15", 8 | "http-interop", 9 | "http", 10 | "server", 11 | "handler", 12 | "request", 13 | "response" 14 | ], 15 | "license": "MIT", 16 | "authors": [ 17 | { 18 | "name": "PHP-FIG", 19 | "homepage": "https://www.php-fig.org/" 20 | } 21 | ], 22 | "support": { 23 | "source": "https://github.com/php-fig/http-server-handler" 24 | }, 25 | "require": { 26 | "php": ">=7.0", 27 | "psr/http-message": "^1.0 || ^2.0" 28 | }, 29 | "autoload": { 30 | "psr-4": { 31 | "Psr\\Http\\Server\\": "src/" 32 | } 33 | }, 34 | "extra": { 35 | "branch-alias": { 36 | "dev-master": "1.0.x-dev" 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/RequestHandlerInterface.php: -------------------------------------------------------------------------------- 1 |