code: public void configureHttpPipeline(ChannelPipeline serverPipeline, String initialHttpScheme) {
  
          if (initialHttpScheme.equals(Constants.HTTP_SCHEME)) {
              serverPipeline.addLast(Constants.HTTP_ENCODER, new HttpResponseEncoder());
              serverPipeline.addLast(Constants.HTTP_DECODER,
                                     new HttpRequestDecoder(reqSizeValidationConfig.getMaxUriLength(),
                                                            reqSizeValidationConfig.getMaxHeaderSize(),
                                                            reqSizeValidationConfig.getMaxChunkSize()));
  
              serverPipeline.addLast(Constants.HTTP_COMPRESSOR, new CustomHttpContentCompressor());
              serverPipeline.addLast(Constants.HTTP_CHUNK_WRITER, new ChunkedWriteHandler());
  
              if (httpTraceLogEnabled) {
                  serverPipeline.addLast(HTTP_TRACE_LOG_HANDLER, new HttpTraceLoggingHandler(TRACE_LOG_DOWNSTREAM));
              }
              if (httpAccessLogEnabled) {
                  serverPipeline.addLast(HTTP_ACCESS_LOG_HANDLER, new HttpAccessLoggingHandler(ACCESS_LOG));
              }
          }
          serverPipeline.addLast("uriLengthValidator", new UriAndHeaderLengthValidator(this.serverName));
          if (reqSizeValidationConfig.getMaxEntityBodySize() > -1) {
              serverPipeline.addLast("maxEntityBodyValidator", new MaxEntityBodyValidator(this.serverName,
                      reqSizeValidationConfig.getMaxEntityBodySize()));
          }
  
          serverPipeline.addLast(Constants.WEBSOCKET_SERVER_HANDSHAKE_HANDLER,
                           new WebSocketServerHandshakeHandler(this.serverConnectorFuture, this.interfaceId));
          serverPipeline.addLast(Constants.BACK_PRESSURE_HANDLER, new BackPressureHandler());
          serverPipeline.addLast(Constants.HTTP_SOURCE_HANDLER,
                                 new SourceHandler(this.serverConnectorFuture, this.interfaceId, this.chunkConfig,
                                                   keepAliveConfig, this.serverName, this.allChannels,
                                         this.pipeliningEnabled, this.pipeliningLimit, this.pipeliningGroup));
          if (socketIdleTimeout >= 0) {
              serverPipeline.addBefore(Constants.HTTP_SOURCE_HANDLER, Constants.IDLE_STATE_HANDLER,
                                       new IdleStateHandler(0, 0, socketIdleTimeout, TimeUnit.MILLISECONDS));
          }
      }
docs: Configures HTTP/1.x pipeline.
  
  @param serverPipeline the channel pipeline
  @param initialHttpScheme initial http scheme