List of usage examples for io.netty.handler.codec.http HttpClientCodec HttpClientCodec
public HttpClientCodec(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize, boolean failOnMissingResponse, boolean validateHeaders, int initialBufferSize)
From source file:io.gatling.http.client.impl.DefaultHttpClient.java
License:Apache License
private HttpClientCodec newHttpClientCodec() { return new HttpClientCodec(4096, 8192, 8192, false, false, 128); }
From source file:io.vertx.core.http.impl.HttpChannelConnector.java
License:Open Source License
private void applyHttp1xConnectionOptions(ChannelPipeline pipeline) { if (options.getLogActivity()) { pipeline.addLast("logging", new LoggingHandler()); }// w w w. j a v a 2 s. c o m pipeline.addLast("codec", new HttpClientCodec(options.getMaxInitialLineLength(), options.getMaxHeaderSize(), options.getMaxChunkSize(), false, false, options.getDecoderInitialBufferSize())); if (options.isTryUseCompression()) { pipeline.addLast("inflater", new HttpContentDecompressor(true)); } }