Registry / networking / spiral-roadrunner-http

spiral-roadrunner-http

JSON →
library4.1.0phppackagistunverified

RoadRunner: HTTP and PSR-7 worker

composer require spiral/roadrunner-http
INSTALL
IMPORT
SIG · SPIRAL-ROADRUNNER-
S
spiral-roadrunner-http
networkingphpv4.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PSR7Worker
use Spiral\RoadRunner\Http\PSR7Worker;

Starts a PSR-7 worker loop for RoadRunner.

use Spiral\RoadRunner\Http\PSR7Worker; use Nyholm\Psr7\Factory\Psr17Factory; $worker = new PSR7Worker( \Spiral\RoadRunner\Worker::create(), new Psr17Factory(), new Psr17Factory(), new Psr17Factory() ); while ($request = $worker->waitRequest()) { $response = new \Nyholm\Psr7\Response(200, [], 'Hello World'); $worker->respond($response); }
Debug
Known issues
gotchaRequires RoadRunner server binary to be running.
fix
Ensure the RoadRunner server is installed and configured before running the worker.
affects: >=4.0.0
Upgrade
Version history
4.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
38
OpenAI (training)
1
Resources
spiral-roadrunner-http — pip install spiral-roadrunner-http · libregistry