public function AbstractEntityBodyDecorator::getContentType

Guess the Content-Type or return the default application/octet-stream

Return value

string

Overrides EntityBodyInterface::getContentType

See also

http://www.php.net/manual/en/function.finfo-open.php

File

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

Class

AbstractEntityBodyDecorator
Abstract decorator used to wrap entity bodies

Namespace

Guzzle\Http

Code

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