You are here

public function HttpClientXMLFormatter::accepts in Http Client 7.2

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

Return the mime type that the formatter can parse.

Overrides HttpClientFormatter::accepts

File

includes/formatter/HttpClientXMLFormatter.inc, line 77

Class

HttpClientXMLFormatter
Class for handling xml-responses. Returns a SimpleXML object

Code

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