You are here

public function HttpClientCompositeFormatter::accepts in Http Client 7.2

Same name and namespace in other branches
  1. 6.2 includes/HttpClient.inc \HttpClientCompositeFormatter::accepts()

Return the mime type that the formatter can parse.

Overrides HttpClientFormatter::accepts

File

includes/HttpClient.inc, line 467

Class

HttpClientCompositeFormatter
A utility formatter to use for creating assymetrical http client formatters.

Code

public function accepts() {
  return $this->accept
    ->mimeType();
}