Guides

HttpHandler
in package
implements HttpServerInterface uses CloseResponseTrait

FinalYes

Table of Contents

Interfaces

HttpServerInterface

Properties

$detector  : ExtensionMimeTypeDetector
$files  : FlySystemAdapter
$indexFile  : string|array<string|int, mixed>

Methods

__construct()  : mixed
onClose()  : void
onError()  : void
onMessage()  : void
onOpen()  : void
injectWebSocketClient()  : string

Properties

$detector

private ExtensionMimeTypeDetector $detector

$indexFile

private string|array<string|int, mixed> $indexFile = 'index.html'

Methods

__construct()

public __construct(FlySystemAdapter $files[, string|array<string|int, string> $indexFile = 'index.html' ]) : mixed
Parameters
$files : FlySystemAdapter
$indexFile : string|array<string|int, 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
Return values
string

        
On this page

Search results