public final class HttpMethods
extends Object
Utility functions related to HTTP methods.
- Since:
- 1.16.0
-
Method Summary
static boolean
Checks if the given method is a well-known HTTP method defined in
RFC 9110 and
RFC 5789.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
isStandard
public static boolean isStandard(String method)
Checks if the given method is a well-known HTTP method defined in
RFC 9110 and
RFC 5789. This is
case-sensitive and known methods are all uppercase.
- Parameters:
method - HTTP method to check
- Returns:
true if the given method is a standard HTTP method