Package io.microsphere.spring.web.util
Class HttpUtils
java.lang.Object
io.microsphere.spring.web.util.HttpUtils
The utilities class for HTTP
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
HttpMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionAll HTTP Methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS and TRACE . -
Method Summary
Modifier and TypeMethodDescriptionstatic booleansupportsMethod(String method) static booleansupportsMethod(org.springframework.http.HttpMethod method) static booleansupportsMethod(org.springframework.web.bind.annotation.RequestMethod method)
-
Field Details
-
ALL_HTTP_METHODS
All HTTP Methods: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS and TRACE .
-
-
Method Details
-
supportsMethod
-
supportsMethod
public static boolean supportsMethod(org.springframework.http.HttpMethod method) -
supportsMethod
public static boolean supportsMethod(org.springframework.web.bind.annotation.RequestMethod method)
-