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

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

package cn.net.wanmo.common.http.jdk.enums;

/**
 * "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"
 */
public enum Method {
    GET("GET", "GET"),
    POST("POST", "POST"),
    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