code: def match_http_version(entry, http_version, regex=True):
          
          response_version = entry['response']['httpVersion']
          if regex:
              return re.search(http_version, response_version,
                               flags=re.IGNORECASE) is not None
          else:
              return response_version == http_version
docs: Helper function that returns entries with a request type
          matching the given `request_type` argument.
  
          :param entry: entry object to analyze
          :param request_type: ``str`` of request type to match
          :param regex: ``bool`` indicating whether to use a regex or string match