code: def do_GET(self):
      
      if not self._client_allowed():
        return
  
      try:
        (_, _, path, query, _) = urlsplit(self.path)
        params = parse_qs(query)
        # Give each handler a chance to respond.
        for prefix, handler in self._GET_handlers:
          if self._maybe_handle(prefix, handler, path, params):
            return
        # If no path specified, default to showing the list of all runs.
        if path == '/':
          self._handle_runs('', {})
          return
  
        content = 'Invalid GET request {}'.format(self.path).encode('utf-8'),
        self._send_content(content, 'text/html', code=400)
      except (IOError, ValueError):
        pass
docs: GET method implementation for BaseHTTPRequestHandler.