Class HttpServerCodec

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpServerCodec()
      Creates a new instance with the default decoder options (maxInitialLineLength (4096), maxHeaderSize (8192), and maxChunkSize (8192)).
      HttpServerCodec​(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize)
      Creates a new instance with the specified decoder options.
      HttpServerCodec​(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize, boolean validateHeaders)
      Deprecated.
      Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
      HttpServerCodec​(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize, boolean validateHeaders, int initialBufferSize)
      Deprecated.
      Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
      HttpServerCodec​(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize, boolean validateHeaders, int initialBufferSize, boolean allowDuplicateContentLengths)
      Deprecated.
      Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
      HttpServerCodec​(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize, boolean validateHeaders, int initialBufferSize, boolean allowDuplicateContentLengths, boolean allowPartialChunks)
      Deprecated.
      Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
      HttpServerCodec​(HttpDecoderConfig config)
      Creates a new instance with the specified decoder configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void upgradeFrom​(io.netty.channel.ChannelHandlerContext ctx)
      Upgrades to another protocol from HTTP.
      • Methods inherited from class io.netty.channel.CombinedChannelDuplexHandler

        bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, inboundHandler, init, outboundHandler, read, removeInboundHandler, removeOutboundHandler, userEventTriggered, write
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
    • Constructor Detail

      • HttpServerCodec

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

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

        @Deprecated
        public HttpServerCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean validateHeaders)
        Deprecated.
        Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
        Creates a new instance with the specified decoder options.
      • HttpServerCodec

        @Deprecated
        public HttpServerCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean validateHeaders,
                               int initialBufferSize)
        Deprecated.
        Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
        Creates a new instance with the specified decoder options.
      • HttpServerCodec

        @Deprecated
        public HttpServerCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean validateHeaders,
                               int initialBufferSize,
                               boolean allowDuplicateContentLengths)
        Deprecated.
        Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
        Creates a new instance with the specified decoder options.
      • HttpServerCodec

        @Deprecated
        public HttpServerCodec​(int maxInitialLineLength,
                               int maxHeaderSize,
                               int maxChunkSize,
                               boolean validateHeaders,
                               int initialBufferSize,
                               boolean allowDuplicateContentLengths,
                               boolean allowPartialChunks)
        Deprecated.
        Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
        Creates a new instance with the specified decoder options.
      • HttpServerCodec

        public HttpServerCodec​(HttpDecoderConfig config)
        Creates a new instance with the specified decoder configuration.