public function Response::getContentType

Get the Content-Type HTTP header

Return value

string Returns the mime type of this content.

1 call to Response::getContentType()
Response::isContentType in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php
Checks if the Content-Type is of a certain type. This is useful if the Content-Type header contains charset information and you need to know if the Content-Type matches a particular type.

File

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

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getContentType() {
  return $this
    ->getHeader('Content-Type', true);
}