Class HttpMethods

java.lang.Object
io.micrometer.core.instrument.binder.http.HttpMethods

public final class HttpMethods extends Object
Utility functions related to HTTP methods.
Since:
1.16.0
  • 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