code: def _add_dispatcher(self, path_regex, dispatch_function):
      
      self._dispatchers.append((re.compile(path_regex), dispatch_function))
docs: Add a request path and dispatch handler.
  
      Args:
        path_regex: A string regex, the path to match against incoming requests.
        dispatch_function: The function to call for these requests.  The function
          should take (request, start_response) as arguments and
          return the contents of the response body.