Class HttpMethods


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

      • custom

        @Deprecated
        public static HttpMethod custom​(java.lang.String value,
                                        boolean safe,
                                        boolean idempotent,
                                        RequestEntityAcceptance requestEntityAcceptance)
        Deprecated.
        The created method will compute the presence of Content-Length headers based on deprecated logic (before issue #4213).
        Create a custom method type.
      • custom

        public static HttpMethod custom​(java.lang.String value,
                                        boolean safe,
                                        boolean idempotent,
                                        RequestEntityAcceptance requestEntityAcceptance,
                                        boolean contentLengthAllowed)
        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.