Download the PHP package idiosyncratic/http-runner without Composer
On this page you can find all versions of the php package idiosyncratic/http-runner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download idiosyncratic/http-runner
More information about idiosyncratic/http-runner
Files in idiosyncratic/http-runner
Download idiosyncratic/http-runner
More information about idiosyncratic/http-runner
Files in idiosyncratic/http-runner
Please rate this library. Is it a good library?
Informations about the package http-runner
The Idiosyncratic HTTP Runner
Library for running an HTTP request and emitting the generated response.
Inspired by zend-httphandlerrunner, this library
provides a class for executing PSR-15 request handlers and emitting
the generated PSR-7 response back to the waiting client. Differences from
the Zend library include:
- Requires an implementation of
Idiosyncratic\Http\Runner\ServerRequestFactory
to creates the initial PSR-7ServerRequestInterface
instance instead of accepting a callable - Internally, uses output buffering to suppress output to the client, including headers, until the final response is emitted. As a result, all headers and cookies (including for instance the PHP session cookie) must be set in the final
ResponseInterface
instance or they will not be sent to the client - The interface for the response emitter (
Idiosyncratic\Http\Runner\ResponseEmitter
) is not stackable
Installation
Install using Composer:
Usage
In order to user this library, you will need to provide:
- An implementation of
Idiosyncratic\Http\Runner\ServerRequestFactory
to create the initial PSR-7ServerRequestInterface
instance - An implementation of
Psr\Http\Server\RequestHandlerInterface
to handle generating a response - An implementation of
Idiosyncratic\Http\Runner\ResponseEmitter
to emit a PSR-7ResponseInterface
to the client. A basicIdiosyncratic\Http\Runner\PhpSapiResponseEmitter
is included. - An implementation of
Psr\Log\LoggerInterface
to log uncaught exceptions
All versions of http-runner with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.3
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^1.1
psr/http-factory Version ^1.0
psr/http-message Version ^1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^1.1
The package idiosyncratic/http-runner contains the following files
Loading the files please wait ....