org.smartboot.http.common.enums.HttpMethodEnum Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2017-2020, org.smartboot. All rights reserved.
* project name: smart-http
* file name: HttpMethodEnum.java
* Date: 2020-01-01
* Author: sandao ([email protected])
******************************************************************************/
package org.smartboot.http.common.enums;
/**
* Http支持的Method
*
* @author 三刀
* @version V1.0 , 2018/2/6
*/
public enum HttpMethodEnum {
OPTIONS("OPTIONS"),
GET("GET"),
HEAD("HEAD"),
POST("POST"),
PUT("PUT"),
DELETE("DELETE"),
TRACE("TRACE"),
CONNECT("CONNECT");
private final String method;
private final String lowerCaseMethod;
HttpMethodEnum(String method) {
this.method = method;
this.lowerCaseMethod = method.toLowerCase();
}
public String getMethod() {
return method;
}
public String getLowerCaseMethod() {
return lowerCaseMethod;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy