presto-main/src/main/java/io/prestosql/operator/HttpPageBufferClient.java/HttpPageBufferClient/mediaTypeMatches
class HttpPageBufferClient:        private static boolean mediaTypeMatches(String value, MediaType range)
        {
            try {
                return MediaType.parse(value).is(range);
            }
            catch (IllegalArgumentException | IllegalStateException e) {
                return false;
            }
        }