code: def cgi_method_is_post(environ: Dict[str, str]) -> bool:
      
      method = environ.get("REQUEST_METHOD", None)
      if not method:
          return False
      return method.upper() == "POST"
docs: Determines if the CGI method was ``POST``, given the CGI environment.