<?php
$app = new Yaf_Application(dirname(__FILE__) . "/conf/application.ini");
$dispatcher = Yaf_Dispatcher::getInstance();
// Do not flush the response body to the client as soon as it is set
$dispatcher->flushInstantly(false);
// Since Yaf 2.2.0, calling it without arguments queries the current state
var_dump($dispatcher->flushInstantly());
$app->run();
?>
The above example will output
something similar to: