Aerys\NullBody class NullBody extends Aerys\Body

Summary

Properties

Methods

Methods

__construct — public function __construct()
No documentation.
when — public function when(callable $func, $data = null)
No documentation.
Type Parameter Description Default Value
callable $func No documentation. none
mixed $data No documentation. null
watch — public function watch(callable $func, $data = null)
No documentation.
Type Parameter Description Default Value
callable $func No documentation. none
mixed $data No documentation. null
valid — public function valid(): Amp\Promise

Will more data arrive on the stream?

Stream consumers should await the result of the valid() promise before consuming stream output.

consume — public function consume(): mixed

Consume buffered stream data