public function AbstractEntityBodyDecorator::getContentLength

Get the Content-Length of the entity body if possible (alias of getSize)

Return value

int|bool Returns the Content-Length or false on failure

Overrides EntityBodyInterface::getContentLength

1 method overrides AbstractEntityBodyDecorator::getContentLength()
ReadLimitEntityBody::getContentLength in drupal/core/vendor/guzzle/http/Guzzle/Http/ReadLimitEntityBody.php
Returns the Content-Length of the limited subset of data

File

drupal/core/vendor/guzzle/http/Guzzle/Http/AbstractEntityBodyDecorator.php, line 88

Class

AbstractEntityBodyDecorator
Abstract decorator used to wrap entity bodies

Namespace

Guzzle\Http

Code

public function getContentLength() {
  return $this->body
    ->getContentLength();
}