FollowRedirect
in package
implements
LoggerAwareInterface, ProcessHttpIncomingInterface, Stringable
uses
LoggerAwareTrait, StringableTrait
WebSocket\Middleware\CloseHandler class.
Handles close procedure.
Table of Contents
Interfaces
- LoggerAwareInterface
- Describes a logger-aware instance.
- ProcessHttpIncomingInterface
- WebSocket\Middleware\ProcessHttpIncomingInterface interface.
- Stringable
Properties
- $logger : LoggerInterface|null
- The logger instance.
- $attempts : int
- $limit : int
Methods
- __construct() : mixed
- __toString() : string
- processHttpIncoming() : Message
- setLogger() : void
- Sets a logger.
- stringable() : string
Properties
$logger
The logger instance.
protected
LoggerInterface|null
$logger
= null
$attempts
private
int
$attempts
= 1
$limit
private
int
$limit
Methods
__construct()
public
__construct([int $limit = 10 ]) : mixed
Parameters
- $limit : int = 10
__toString()
public
__toString() : string
Return values
stringprocessHttpIncoming()
public
processHttpIncoming(ProcessHttpStack $stack, Connection $connection) : Message
Parameters
- $stack : ProcessHttpStack
- $connection : Connection
Return values
MessagesetLogger()
Sets a logger.
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
stringable()
protected
stringable(string $format, mixed ...$values) : string
Parameters
- $format : string
- $values : mixed