HttpHandler
in package
implements
LoggerAwareInterface, Stringable
uses
StringableTrait
WebSocket\Http\HttpHandler class.
Reads and writes HTTP message to/from stream.
Table of Contents
Interfaces
- LoggerAwareInterface
- Describes a logger-aware instance.
- Stringable
Properties
- $logger : LoggerInterface
- $ssl : bool
- $stream : SocketStream
Methods
- __construct() : mixed
- __toString() : string
- pull() : MessageInterface
- push() : MessageInterface
- setLogger() : void
- Sets a logger instance on the object.
- stringable() : string
Properties
$logger
private
LoggerInterface
$logger
$ssl
private
bool
$ssl
$stream
private
SocketStream
$stream
Methods
__construct()
public
__construct(SocketStream $stream[, bool $ssl = false ]) : mixed
Parameters
- $stream : SocketStream
- $ssl : bool = false
__toString()
public
__toString() : string
Return values
stringpull()
public
pull() : MessageInterface
Return values
MessageInterfacepush()
public
push(MessageInterface $message) : MessageInterface
Parameters
- $message : MessageInterface
Return values
MessageInterfacesetLogger()
Sets a logger instance on the object.
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
stringable()
protected
stringable(string $format, mixed ...$values) : string
Parameters
- $format : string
- $values : mixed