src/Control/HTTPRequest.php
public function getAcceptMimetypes($includeQuality = false)
    {
        $mimetypes = array();
        $mimetypesWithQuality = preg_split('#\s*,\s*#', $this->getHeader('accept'));
        foreach ($mimetypesWithQuality as $mimetypeWithQuality) {
            $mimetypes[] = ($includeQuality) ? $mimetypeWithQuality : preg_replace('/;.*/', '', $mimetypeWithQuality);
        }
        return $mimetypes;
    }
public function getAcceptMimetypes($includeQuality = false)
    {
        $mimetypes = array();
        $mimetypesWithQuality = preg_split('#\s*,\s*#', $this->getHeader('accept'));
        foreach ($mimetypesWithQuality as $mimetypeWithQuality) {
            $mimetypes[] = ($includeQuality) ? $mimetypeWithQuality : preg_replace('/;.*/', '', $mimetypeWithQuality);
        }
        return $mimetypes;
    }
public function getAcceptMimetypes ( $ includeQuality = false ) { $ mimetypes = array ( ) ; $ mimetypesWithQuality = preg_split ( '#\s*,\s*#' , $ this -> getHeader ( 'accept' ) ) ; foreach ( $ mimetypesWithQuality as $ mimetypeWithQuality ) { $ mimetypes [ ] = ( $ includeQuality ) ? $ mimetypeWithQuality : preg_replace ( '/;.*/' , '' , $ mimetypeWithQuality ) ; } return $ mimetypes ; }
Returns all mimetypes from the HTTP "Accept" header
as an array.

@param boolean $includeQuality Don't strip away optional "quality indicators", e.g. "application/xml;q=0.9"
(Default: false)
@return array
Returns all mimetypes from the HTTP Accept header as an array .