├── .editorconfig ├── .github └── workflows │ └── ci.yml ├── .php-cs-fixer.dist.php ├── LICENSE ├── composer-require-check.json ├── composer.json ├── infection.json.dist ├── psalm.xml ├── resources ├── error.html └── internal-server-error.html ├── src ├── ClientException.php ├── DefaultErrorHandler.php ├── DefaultExceptionHandler.php ├── Driver │ ├── Client.php │ ├── ClientFactory.php │ ├── ConnectionLimitingClientFactory.php │ ├── ConnectionLimitingServerSocket.php │ ├── ConnectionLimitingServerSocketFactory.php │ ├── DefaultHttpDriverFactory.php │ ├── Http1Driver.php │ ├── Http2Driver.php │ ├── HttpDriver.php │ ├── HttpDriverFactory.php │ ├── Internal │ │ ├── AbstractHttpDriver.php │ │ ├── Http2Stream.php │ │ ├── HttpDriverErrorHandler.php │ │ ├── StreamTimeoutTracker.php │ │ └── TimeoutQueue.php │ ├── LoggingSocketClientFactory.php │ ├── SocketClient.php │ ├── SocketClientFactory.php │ ├── UpgradedSocket.php │ └── functions.php ├── ErrorHandler.php ├── ExceptionHandler.php ├── HttpErrorException.php ├── HttpServer.php ├── HttpServerStatus.php ├── Middleware.php ├── Middleware │ ├── AccessLoggerMiddleware.php │ ├── AllowedMethodsMiddleware.php │ ├── ClosureMiddleware.php │ ├── CompressionMiddleware.php │ ├── ConcurrencyLimitingMiddleware.php │ ├── ExceptionHandlerMiddleware.php │ ├── Forwarded.php │ ├── ForwardedHeaderType.php │ ├── ForwardedMiddleware.php │ ├── Internal │ │ └── MiddlewareRequestHandler.php │ └── functions.php ├── MissingAttributeError.php ├── Push.php ├── Request.php ├── RequestBody.php ├── RequestHandler.php ├── RequestHandler │ └── ClosureRequestHandler.php ├── Response.php ├── SocketHttpServer.php ├── Trailers.php └── functions.php └── tools ├── h2spec.sh └── tls ├── local.conf ├── localhost.cert.pem ├── localhost.key.pem ├── localhost.pem └── regenerate.sh /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/.php-cs-fixer.dist.php -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/LICENSE -------------------------------------------------------------------------------- /composer-require-check.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/composer-require-check.json -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/composer.json -------------------------------------------------------------------------------- /infection.json.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/infection.json.dist -------------------------------------------------------------------------------- /psalm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/psalm.xml -------------------------------------------------------------------------------- /resources/error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/resources/error.html -------------------------------------------------------------------------------- /resources/internal-server-error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/resources/internal-server-error.html -------------------------------------------------------------------------------- /src/ClientException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/ClientException.php -------------------------------------------------------------------------------- /src/DefaultErrorHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/DefaultErrorHandler.php -------------------------------------------------------------------------------- /src/DefaultExceptionHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/DefaultExceptionHandler.php -------------------------------------------------------------------------------- /src/Driver/Client.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Client.php -------------------------------------------------------------------------------- /src/Driver/ClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/ClientFactory.php -------------------------------------------------------------------------------- /src/Driver/ConnectionLimitingClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/ConnectionLimitingClientFactory.php -------------------------------------------------------------------------------- /src/Driver/ConnectionLimitingServerSocket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/ConnectionLimitingServerSocket.php -------------------------------------------------------------------------------- /src/Driver/ConnectionLimitingServerSocketFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/ConnectionLimitingServerSocketFactory.php -------------------------------------------------------------------------------- /src/Driver/DefaultHttpDriverFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/DefaultHttpDriverFactory.php -------------------------------------------------------------------------------- /src/Driver/Http1Driver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Http1Driver.php -------------------------------------------------------------------------------- /src/Driver/Http2Driver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Http2Driver.php -------------------------------------------------------------------------------- /src/Driver/HttpDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/HttpDriver.php -------------------------------------------------------------------------------- /src/Driver/HttpDriverFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/HttpDriverFactory.php -------------------------------------------------------------------------------- /src/Driver/Internal/AbstractHttpDriver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Internal/AbstractHttpDriver.php -------------------------------------------------------------------------------- /src/Driver/Internal/Http2Stream.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Internal/Http2Stream.php -------------------------------------------------------------------------------- /src/Driver/Internal/HttpDriverErrorHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Internal/HttpDriverErrorHandler.php -------------------------------------------------------------------------------- /src/Driver/Internal/StreamTimeoutTracker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Internal/StreamTimeoutTracker.php -------------------------------------------------------------------------------- /src/Driver/Internal/TimeoutQueue.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/Internal/TimeoutQueue.php -------------------------------------------------------------------------------- /src/Driver/LoggingSocketClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/LoggingSocketClientFactory.php -------------------------------------------------------------------------------- /src/Driver/SocketClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/SocketClient.php -------------------------------------------------------------------------------- /src/Driver/SocketClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/SocketClientFactory.php -------------------------------------------------------------------------------- /src/Driver/UpgradedSocket.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/UpgradedSocket.php -------------------------------------------------------------------------------- /src/Driver/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Driver/functions.php -------------------------------------------------------------------------------- /src/ErrorHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/ErrorHandler.php -------------------------------------------------------------------------------- /src/ExceptionHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/ExceptionHandler.php -------------------------------------------------------------------------------- /src/HttpErrorException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/HttpErrorException.php -------------------------------------------------------------------------------- /src/HttpServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/HttpServer.php -------------------------------------------------------------------------------- /src/HttpServerStatus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/HttpServerStatus.php -------------------------------------------------------------------------------- /src/Middleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware.php -------------------------------------------------------------------------------- /src/Middleware/AccessLoggerMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/AccessLoggerMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/AllowedMethodsMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/AllowedMethodsMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/ClosureMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/ClosureMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/CompressionMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/CompressionMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/ConcurrencyLimitingMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/ConcurrencyLimitingMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/ExceptionHandlerMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/ExceptionHandlerMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/Forwarded.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/Forwarded.php -------------------------------------------------------------------------------- /src/Middleware/ForwardedHeaderType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/ForwardedHeaderType.php -------------------------------------------------------------------------------- /src/Middleware/ForwardedMiddleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/ForwardedMiddleware.php -------------------------------------------------------------------------------- /src/Middleware/Internal/MiddlewareRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/Internal/MiddlewareRequestHandler.php -------------------------------------------------------------------------------- /src/Middleware/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Middleware/functions.php -------------------------------------------------------------------------------- /src/MissingAttributeError.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/MissingAttributeError.php -------------------------------------------------------------------------------- /src/Push.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Push.php -------------------------------------------------------------------------------- /src/Request.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Request.php -------------------------------------------------------------------------------- /src/RequestBody.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/RequestBody.php -------------------------------------------------------------------------------- /src/RequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/RequestHandler.php -------------------------------------------------------------------------------- /src/RequestHandler/ClosureRequestHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/RequestHandler/ClosureRequestHandler.php -------------------------------------------------------------------------------- /src/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Response.php -------------------------------------------------------------------------------- /src/SocketHttpServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/SocketHttpServer.php -------------------------------------------------------------------------------- /src/Trailers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/Trailers.php -------------------------------------------------------------------------------- /src/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/src/functions.php -------------------------------------------------------------------------------- /tools/h2spec.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/tools/h2spec.sh -------------------------------------------------------------------------------- /tools/tls/local.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/tools/tls/local.conf -------------------------------------------------------------------------------- /tools/tls/localhost.cert.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/tools/tls/localhost.cert.pem -------------------------------------------------------------------------------- /tools/tls/localhost.key.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/tools/tls/localhost.key.pem -------------------------------------------------------------------------------- /tools/tls/localhost.pem: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/tools/tls/localhost.pem -------------------------------------------------------------------------------- /tools/tls/regenerate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amphp/http-server/HEAD/tools/tls/regenerate.sh --------------------------------------------------------------------------------