def is?(type)
      return false if type.to_s.empty?

      expected_types = Array.wrap(type).map(&:to_s)
      content_type && expected_types.select do |t|
        content_type.select { |ct| ct.start_with?(t) }
      end.any?
    end
def is?(type)
      return false if type.to_s.empty?

      expected_types = Array.wrap(type).map(&:to_s)
      content_type && expected_types.select do |t|
        content_type.select { |ct| ct.start_with?(t) }
      end.any?
    end
Initialise a UrlInfo for a particular URL

 @param [String] url the URL you want to get info about
 @param [Integer] request_timeout Max time to wait for headers from the server

 Check the Content-Type of the resource

 @param [String, Symbol, Array] type the prefix (before "/") or full Content-Type content
 @return [Boolean] true if Content-Type matches something from the types list