Neos\Flow\Http\Request::getAcceptedMediaTypes PHP Méthode

getAcceptedMediaTypes() public méthode

The list is ordered by user preference, after evaluating the Quality Values specified in the header field value. First items in the list are the most preferred. If no Accept header is present, the media type representing "any" media type is returned.
public getAcceptedMediaTypes ( ) : array
Résultat array A list of media types and sub types
    public function getAcceptedMediaTypes()
    {
        $rawValues = $this->headers->get('Accept');
        if (empty($rawValues)) {
            return ['*/*'];
        }
        $acceptedMediaTypes = self::parseContentNegotiationQualityValues($rawValues);
        return $acceptedMediaTypes;
    }