public function Response::getContentLength

Get the Content-Length HTTP header

Return value

integer Returns the length of the response body in bytes

1 call to Response::getContentLength()
Response::canCache in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php
Check if the response can be cached

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 472

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getContentLength() {
  return (int) $this
    ->getHeader('Content-Length', true);
}