Gets the format associated with the request.
@api
string|null The format (null if no content type is present)
public function getContentType() { return $this ->getFormat($this->server ->get('CONTENT_TYPE')); }