code: def match_content_type(entry, content_type, regex=True):
          
          mimeType = entry['response']['content']['mimeType']
  
          if regex and re.search(content_type, mimeType, flags=re.IGNORECASE):
              return True
  
          elif content_type == mimeType:
              return True
  
          return False
docs: Matches the content type of a request using the mimeType metadata.
  
          :param entry: ``dict`` of a single entry from a HarPage
          :param content_type: ``str`` of regex to use for finding content type
          :param regex: ``bool`` indicating whether to use regex or exact match.