def parse_request_method_name(method): if method in ["POST", "post"]: return "add" if method in ["GET", "get"]: return "view" if method in ["PUT", "put"]: return "change" if method in ["DELETE", "delete"]: return "delete"