-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to configure my own ChannelPipeline #88
Comments
Mark the issue as an enhancements. This could be done using the NettyAsyncHttpProviderConfig allowing the use of customized Pipeline |
This has been fixed and available now by #205 |
Backport to 1.7.x? |
Not necessary IMO. |
I would re-open this issue if I could. The current implementation in 1.9.33 has taken away the ability to customize your own Channel Pipeline. The code in question has been moved into the method:
of class com.ning.http.client.providers.netty.channel.ChannelManager where many of the variables you would want to access are private. |
With all due respect to Jean-François, I think this move was a wrong one. Allowing for extensibility this way is no less than making it easier for people for fork without ever contributing back. That's not how open-source is supposed to work! If you need to customize the pipeline, there's the channel initializers in the Netty config. Otherwise, state your use case and let's discuss about it so we can bring a solution that can benefit the whole project, not just you alone. |
Your comment pointed me in the right direction. I had a similar use case to the original submitter. I wanted to not automatically decompress gzip files. The below, written in Groovy, worked for me. Perhaps the real issue is that the documentation is scarce. I was attempting to use the approach talked about in this ticket, which no longer works. myNettyProviderConfig.setHttpAdditionalPipelineInitializer(new NettyPipelineInflaterRemover())
|
The new way to do it was implemented here: #717 |
It's not like I'm getting any help here, nor that I make a living with this project... :( |
I want to override the HttpContentDecompressor which I would like to use it for decoding gzip file types. But since some response come in without the proper contentEncoding header, HttpContentDecompressor is ignored. Can we make it so that we can construct custom handlers to the ChannelPipeline?
plainBootstrap.setPipelineFactory(new ChannelPipelineFactory() {
The text was updated successfully, but these errors were encountered: