PHP Класс Aerys\BodyParser

Наследование: implements Amp\Promise
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( aerys\Request $req, array $options = [] )
stream ( string $name, integer $size ) : FieldBody
watch ( callable $cb, $cbData = null )
when ( callable $cb, $cbData = null )

Приватные методы

Метод Описание
end ( $data )
fail ( $e = null )
initField ( $field, $metadata = [] )
initIncremental ( ) this should be inside an immediate (not direct resolve) to give user a chance to install watch() handlers
updateFieldSize ( $field, $data )

Описание методов

__construct() публичный Метод

public __construct ( aerys\Request $req, array $options = [] )
$req aerys\Request
$options array available options are: - size (default: 131072) - input_vars (default: 200) - field_len (default: 16384)

stream() публичный Метод

public stream ( string $name, integer $size ) : FieldBody
$name string field name
$size integer <= 0: use last size, if none present, count toward total size, else separate size just respecting value size
Результат FieldBody

watch() публичный Метод

public watch ( callable $cb, $cbData = null )
$cb callable

when() публичный Метод

public when ( callable $cb, $cbData = null )
$cb callable