def match_mime_type?(value, matcher)
      v1, v2 = value.split('/'.freeze, 2)
      m1, m2 = matcher.split('/'.freeze, 2)
      (m1 == '*'.freeze || v1 == m1) && (m2.nil? || m2 == '*'.freeze || m2 == v2)
    end
def match_mime_type?(value, matcher)
      v1, v2 = value.split('/'.freeze, 2)
      m1, m2 = matcher.split('/'.freeze, 2)
      (m1 == '*'.freeze || v1 == m1) && (m2.nil? || m2 == '*'.freeze || m2 == v2)
    end
Public: Test mime type against mime range.

    match_mime_type?('text/html', 'text/*') => true
    match_mime_type?('text/plain', '*') => true
    match_mime_type?('text/html', 'application/json') => false

 Returns true if the given value is a mime match for the given mime match
 specification, false otherwise.