Amp\Artax\Internal\Parser class Parser

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(callable $bodyDataCallback = null, $mode = self::MODE_RESPONSE)
No documentation.
Type Parameter Description Default Value
callable $bodyDataCallback No documentation. null
mixed $mode No documentation. self::MODE_RESPONSE
setAllOptions — public function setAllOptions(array $options)
No documentation.
Type Parameter Description Default Value
array $options No documentation. none
setOption — public function setOption(string $option, $value)
No documentation.
Type Parameter Description Default Value
string $option No documentation. none
mixed $value No documentation. none
enqueueResponseMethodMatch — public function enqueueResponseMethodMatch(string $method)
No documentation.
Type Parameter Description Default Value
string $method No documentation. none
getBuffer — public function getBuffer(): string|null
No documentation.
getState — public function getState(): int
No documentation.
buffer — public function buffer(string $data)
No documentation.
Type Parameter Description Default Value
string $data No documentation. none
parse — public function parse(string $data = null)
No documentation.
Type Parameter Description Default Value
string $data No documentation. null
getParsedMessageArray — public function getParsedMessageArray(): array
No documentation.