HTTPCommand
in package
FinalYes
Legacy command dispatcher for event-driven HTTP work units.
Included for historical compatibility only. This API is deprecated and should not be used in new code.
Tags
Table of Contents
Properties
- $exec : InterExec
Methods
- __construct() : mixed
- addEventListener() : void
- dispatchEvent() : void
- getEncoding() : null
- getHeaderList() : array<string, string|array<string|int, string>>
- getMime() : null
- removeEventListener() : void
- run() : void
Properties
$exec
protected
InterExec
$exec
Methods
__construct()
public
__construct(string $command) : mixed
Parameters
- $command : string
addEventListener()
public
addEventListener(string $type, Closure $listener[, bool $capture = false ]) : void
Parameters
- $type : string
- $listener : Closure
- $capture : bool = false
dispatchEvent()
public
dispatchEvent(HTTPEvent $event) : void
Parameters
- $event : HTTPEvent
getEncoding()
public
getEncoding() : null
Return values
nullgetHeaderList()
public
getHeaderList() : array<string, string|array<string|int, string>>
Return values
array<string, string|array<string|int, string>>getMime()
public
getMime() : null
Return values
nullremoveEventListener()
public
removeEventListener(string $type, Closure $listener[, bool $capture = false ]) : void
Parameters
- $type : string
- $listener : Closure
- $capture : bool = false
run()
public
run() : void