Aerys\StandardResponse::flush PHP Method

flush() public method

This method only makes sense when streaming output via Response::stream(). Invoking it before calling stream() or after send()/end() is a logic error.
public flush ( )
    public function flush()
    {
        if ($this->state & self::ENDED) {
            throw new \LogicException("Cannot flush: response already sent");
        } elseif ($this->state & self::STARTED) {
            $this->codec->send(false);
        } else {
            throw new \LogicException("Cannot flush: response output not started");
        }
    }