[
https://issues.apache.org/jira/browse/CAMEL-19251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17720617#comment-17720617
]
Dietrich Schulten commented on CAMEL-19251:
-------------------------------------------
I have started to work on this. The first attempt is to see if HttpProxyHandler
works at all.
For this, I have created a custom HttpClientInitializerFactory that adds the
HttpProxyHandler and injected it with
camel.component.netty-http.client-initializer-factory="#httpProxyClientInitializerFactory".
The factory gets called, the HttpProxyHandler gets added to the pipeline, but
otherwise it seems to have no effect.
Since this approach should also be a possible workaround as long as there is no
official support for an http proxy in netty-http, I add the related
StackOverflow post here, for reference:
https://stackoverflow.com/questions/76202842/using-netty-httpproxyhandler
> Support Netty Http Producer behind HTTP Proxy
> ---------------------------------------------
>
> Key: CAMEL-19251
> URL: https://issues.apache.org/jira/browse/CAMEL-19251
> Project: Camel
> Issue Type: New Feature
> Components: camel-netty-http
> Reporter: Dietrich Schulten
> Priority: Major
>
> I need to implement a streaming webdav proxy. Netty would be a pretty natural
> choice, but I need to reach the target system through a corporate proxy.
> Currently, the NettyHttpProducer can't do that. It appears one needs to add
> an HttpProxyHandler for this. Can we make the Netty Producer aware of an Http
> Proxy?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)