com.jianggujin.http.core.JMethod Maven / Gradle / Ivy
package com.jianggujin.http.core;
/**
* HTTP请求方法
*
* @author jianggujin
*
*/
public enum JMethod {
GET(false), POST(true), PUT(true), DELETE(false), PATCH(true), HEAD(false), OPTIONS(false), TRACE(false);
private final boolean hasBody;
JMethod(boolean hasBody) {
this.hasBody = hasBody;
}
/**
* 检查请求方法是否含有请求体
*
* @return hasBody
*/
public final boolean hasBody() {
return hasBody;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy