Nexus API Reference

SwooleHttpServerAdapter
in package
implements HttpServerAdapter

FinalYes
Tags
psalm-api

Thin HttpServerAdapter that wires a Swoole\Http\Server to a PSR-15 RequestHandlerInterface. Use SwooleWorkerServer::run() for the production entry point; this class exists primarily for the HttpServerAdapterContractTest from nexus-http.

Table of Contents

Interfaces

HttpServerAdapter

Methods

__construct()  : mixed
serve()  : void
Block and serve until shutdown is called.
shutdown()  : void
Drain in-flight requests within the timeout, then stop.

Methods

serve()

Block and serve until shutdown is called.

public serve(RequestHandlerInterface $app) : void
Parameters
$app : RequestHandlerInterface

        
On this page

Search results