HttpHandler
in package
implements
HttpServerInterface
uses
CloseResponseTrait
FinalYes
Table of Contents
Interfaces
- HttpServerInterface
Properties
- $detector : ExtensionMimeTypeDetector
- $files : FlySystemAdapter
- $indexFile : string
Methods
- __construct() : mixed
- onClose() : void
- onError() : void
- onMessage() : void
- onOpen() : void
- injectWebSocketClient() : string
Properties
$detector
private
ExtensionMimeTypeDetector
$detector
$files
private
FlySystemAdapter
$files
$indexFile
private
string
$indexFile
= 'index.html'
Methods
__construct()
public
__construct(FlySystemAdapter $files[, string $indexFile = 'index.html' ]) : mixed
Parameters
- $files : FlySystemAdapter
- $indexFile : string = 'index.html'
onClose()
public
onClose(ConnectionInterface $conn) : void
Parameters
- $conn : ConnectionInterface
onError()
public
onError(ConnectionInterface $conn, Throwable $e) : void
Parameters
- $conn : ConnectionInterface
- $e : Throwable
onMessage()
public
onMessage(ConnectionInterface $from, string $msg) : void
Parameters
- $from : ConnectionInterface
- $msg : string
onOpen()
public
onOpen(ConnectionInterface $conn[, RequestInterface|null $request = null ]) : void
Parameters
- $conn : ConnectionInterface
- $request : RequestInterface|null = null
injectWebSocketClient()
private
injectWebSocketClient(string $html) : string
Parameters
- $html : string