Returns the Content-Length of the limited subset of data
Overrides AbstractEntityBodyDecorator::getContentLength
public function getContentLength() {
$length = $this->body
->getContentLength();
return $length === false ? $this->limit : min($this->limit, min($length, $this->offset + $this->limit) - $this->offset);
}