PHPDaemon\HTTPRequest\Input::readFromString PHP Method

readFromString() public method

Append string to input buffer
public readFromString ( string $chunk, boolean $final = true ) : void
$chunk string Piece of request input
$final boolean Final call is THIS SEQUENCE of calls (not mandatory final in request)?
return void
    public function readFromString($chunk, $final = true)
    {
        $this->add($chunk);
        $this->readed += mb_orig_strlen($chunk);
        if ($final) {
            $this->onRead();
        }
    }