Class HttpMethods


  • public final class HttpMethods
    extends java.lang.Object
    Contains static constants for predefined method types.
    • Method Detail

      • custom

        public static HttpMethod custom​(java.lang.String value,
                                        boolean safe,
                                        boolean idempotent,
                                        RequestEntityAcceptance requestEntityAcceptance)
        Create a custom method type.
      • lookup

        public static java.util.Optional<HttpMethod> lookup​(java.lang.String name)
        Looks up a predefined HTTP method with the given name.