ProcessHttpStack
in package
implements
Stringable
uses
StringableTrait
WebSocket\Middleware\ProcessHttpStack class.
Worker stack for HTTP middleware implementations.
Table of Contents
Interfaces
Properties
- $connection : Connection
- $httpHandler : HttpHandler
- $processors : array<string|int, mixed>
Methods
- __construct() : mixed
- Create ProcessStack.
- __toString() : string
- handleHttpIncoming() : Message
- Process middleware for incoming htpp message.
- handleHttpOutgoing() : Message
- Process middleware for outgoing htpp message.
- stringable() : string
Properties
$connection
private
Connection
$connection
$httpHandler
private
HttpHandler
$httpHandler
$processors
private
array<string|int, mixed>
$processors
Methods
__construct()
Create ProcessStack.
public
__construct(Connection $connection, HttpHandler $httpHandler, array<string|int, mixed> $processors) : mixed
Parameters
- $connection : Connection
- $httpHandler : HttpHandler
- $processors : array<string|int, mixed>
__toString()
public
__toString() : string
Return values
stringhandleHttpIncoming()
Process middleware for incoming htpp message.
public
handleHttpIncoming() : Message
Return values
MessagehandleHttpOutgoing()
Process middleware for outgoing htpp message.
public
handleHttpOutgoing(Message $message) : Message
Parameters
- $message : Message
Return values
Messagestringable()
protected
stringable(string $format, mixed ...$values) : string
Parameters
- $format : string
- $values : mixed