You are here

public function HttpClientCompositeFormatter::accepts in Http Client 6.2

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

Return the mime type that the formatter can parse.

Overrides HttpClientFormatter::accepts

File

includes/HttpClient.inc, line 449

Class

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

Code

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