cn.net.wanmo.common.http.enums.Method Maven / Gradle / Ivy
package cn.net.wanmo.common.http.enums;
/**
* "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"
*/
public enum Method {
get("GET", "GET"),
post("POST", "POST"),
upload("POST", "UPLOAD"),
head("HEAD", "HEAD"),
options("OPTIONS", "OPTIONS"),
put("PUT", "PUT"),
delete("DELETE", "DELETE"),
trace("TRACE", "TRACE");
private final String value;
private final String label;
Method(String value, String label) {
this.value = value;
this.label = label;
}
public String getValue() {
return value;
}
public String getLabel() {
return label;
}
}