You are here

public function HttpClientBaseFormatter::mimeType in Http Client 7.2

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

Returns the mime type to use.

2 calls to HttpClientBaseFormatter::mimeType()
HttpClientBaseFormatter::accepts in includes/HttpClient.inc
Return the mime type that the formatter can parse.
HttpClientBaseFormatter::contentType in includes/HttpClient.inc
Return the content type form the data the formatter generates.

File

includes/HttpClient.inc, line 390

Class

HttpClientBaseFormatter
A base formatter to format php and json.

Code

public function mimeType() {
  return $this->mimeTypes[$this->format];
}