getBody(); $total = ceil($this->limit / $body->getSize()); $response->header('Content-Length', [$body->getSize()]); for ($i = 0; $i < $total; $i++) { $body->seek($i); $response->write($body->read($this->limit)); } $response->end(); } }