All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.net.wanmo.common.http.enums.Method Maven / Gradle / Ivy

There is a newer version: 1.3.9
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy