protected function emitBody(ResponseInterface $response)
    {
        while (ob_get_level()) {
            ob_end_flush();
        }

        $body = $response->getBody();
        if ($body->getSize()) {
            echo $body;
        }

        return $this;
    }