Guides

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

Methods

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