Class HttpClientCodec

    • Field Detail

      • DEFAULT_FAIL_ON_MISSING_RESPONSE

        public static final boolean DEFAULT_FAIL_ON_MISSING_RESPONSE
        See Also:
        Constant Field Values
      • DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST

        public static final boolean DEFAULT_PARSE_HTTP_AFTER_CONNECT_REQUEST
        See Also:
        Constant Field Values
      • queue

        private final java.util.Queue<HttpMethod> queue
        A queue that is used for correlating a request and a response.
      • parseHttpAfterConnectRequest

        private final boolean parseHttpAfterConnectRequest
      • done

        private boolean done
        If true, decoding stops (i.e. pass-through)
      • requestResponseCounter

        private final java.util.concurrent.atomic.AtomicLong requestResponseCounter
      • failOnMissingResponse

        private final boolean failOnMissingResponse
    • Constructor Detail

      • HttpClientCodec

        public HttpClientCodec()
        Creates a new instance with the default decoder options (maxInitialLineLength (4096), maxHeaderSize (8192), and maxChunkSize (8192)).
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse,
                               boolean validateHeaders)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse,
                               boolean validateHeaders,
                               boolean parseHttpAfterConnectRequest)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse,
                               boolean validateHeaders,
                               int initialBufferSize)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse,
                               boolean validateHeaders,
                               int initialBufferSize,
                               boolean parseHttpAfterConnectRequest)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse,
                               boolean validateHeaders,
                               int initialBufferSize,
                               boolean parseHttpAfterConnectRequest,
                               boolean allowDuplicateContentLengths)
        Creates a new instance with the specified decoder options.
      • HttpClientCodec

        public HttpClientCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean failOnMissingResponse,
                               boolean validateHeaders,
                               int initialBufferSize,
                               boolean parseHttpAfterConnectRequest,
                               boolean allowDuplicateContentLengths,
                               boolean allowPartialChunks)
        Creates a new instance with the specified decoder options.