PHPDaemon\Servers\FastCGI\Connection::sendChunk PHP Method

sendChunk() public method

Sends a chunk
public sendChunk ( object $req, string $chunk ) : boolean
$req object Request
$chunk string Data
return boolean
    public function sendChunk($req, $chunk)
    {
        $packet = "" . "" . pack('nn', $req->attrs->id, mb_orig_strlen($chunk)) . "" . "";
        // reserved
        return $this->write($packet) && $this->write($chunk);
        // content
    }