Fat Free Framework 中的刷新响应 headers 和 body

Flushing response headers and body in Fat Free Framework

在 Fat Free Framework 中,是否可以在控制器方法结束之前向浏览器 return HTTP headers 和 body(通过模板生成)?寻找类似于 PHP 的内置 flush() 函数的东西。我想要 return 对浏览器的响应,使其不再需要任何数据,然后是 运行 可能需要很长时间的代码。

可能与 , so see there for some solutions. Also worth trying is the $f3->abort() feature, see https://fatfreeframework.com/3.6/base#abort

重复