public static function determineAcceptedMediaTypes(RequestInterface $request): array
    {
        $rawValues = $request->getHeader('Accept');
        if (empty($rawValues) || !is_string($rawValues)) {
            return ['*/*'];
        }
        $acceptedMediaTypes = self::parseContentNegotiationQualityValues($rawValues);

        return $acceptedMediaTypes;
    }
public static function determineAcceptedMediaTypes(RequestInterface $request): array
    {
        $rawValues = $request->getHeader('Accept');
        if (empty($rawValues) || !is_string($rawValues)) {
            return ['*/*'];
        }
        $acceptedMediaTypes = self::parseContentNegotiationQualityValues($rawValues);

        return $acceptedMediaTypes;
    }
public static function determineAcceptedMediaTypes ( RequestInterface $ request ) : array { $ rawValues = $ request -> getHeader ( 'Accept' ) ; if ( empty ( $ rawValues ) || ! is_string ( $ rawValues ) ) { return [ '*/*' ] ; } $ acceptedMediaTypes = self :: parseContentNegotiationQualityValues ( $ rawValues ) ; return $ acceptedMediaTypes ; }
Get accepted media types for the given request.
If no "Accept" header was found all media types are acceptable.

@param RequestInterface $request
@return array
Get accepted media types for the given request . If no Accept header was found all media types are acceptable .