code: def match_request_type(self, entry, request_type, regex=True):
          
          if regex:
              return re.search(request_type, entry['request']['method'],
                               flags=re.IGNORECASE) is not None
          else:
              return entry['request']['method'] == request_type
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