Package org.asynchttpclient.providers.netty.NettyAsyncHttpProviderConfig

Examples of org.asynchttpclient.providers.netty.NettyAsyncHttpProviderConfig.AdditionalPipelineInitializer


    @Test(groups = { "standalone", "netty_provider" })
    public void asyncPipelineTest() throws Exception {

        NettyAsyncHttpProviderConfig nettyConfig = new NettyAsyncHttpProviderConfig();
        nettyConfig.setHttpAdditionalPipelineInitializer(new AdditionalPipelineInitializer() {
            public void initPipeline(ChannelPipeline pipeline) throws Exception {
                pipeline.addBefore("inflater", "copyEncodingHeader", new CopyEncodingHandler());
            }
        });
        AsyncHttpClient p = getAsyncHttpClient(new AsyncHttpClientConfig.Builder()
View Full Code Here

TOP

Related Classes of org.asynchttpclient.providers.netty.NettyAsyncHttpProviderConfig.AdditionalPipelineInitializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.