public getContentType ( boolean $mimetypeOnly = true ) : string | ||
$mimetypeOnly | boolean | whether to return only the mimetype (default: true) |
return | string | content type (e.g. 'application/json' or 'text/html; encoding=gzip') or null if not specified |