Class Expect100ContinueUsage


  • public final class Expect100ContinueUsage
    extends Object
    Utility class to check whether it's possible to send the Expect header within request.
    • Method Detail

      • isAllowed

        public static boolean isAllowed​(ClientRequest request,
                                        String requestMethod)
        Checks if usage of the Expect header with 100-Continue value is allowed
        Parameters:
        request - client's request
        requestMethod - method of the request (GET, POST, PUT etc).
        Returns:
        true if the Expect header is allowed.