12345678910 |
- def parse_request_method_name(method):
- if method in ["POST", "post", "Post", "add", "ADD", "Add"]:
- return "add"
- if method in ["GET", "get", "Get", "view", "VIEW", "View"]:
- return "view"
- if method in ["PUT", "put", "Put", "change", "CHANGE", "Change"]:
- return "change"
- if method in ["DELETE", "delete", "Delete"]:
- return "delete"
|