Examples of AdditionalPipelineInitializer


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
Copyright © 2018 www.massapi.com. 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.