public function EntityBody::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

File

drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php, line 133

Class

EntityBody
Entity body used with an HTTP request or response

Namespace

Guzzle\Http

Code

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