-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate TcpClient/HttpClient proxy documentation
Signed-off-by: Violeta Georgieva <[email protected]>
- Loading branch information
Showing
5 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
== Proxy Support | ||
|
||
Reactor Netty supports the proxy functionality provided by Netty and provides a way | ||
to specify `non proxy hosts` through the {javadoc}/reactor/netty/tcp/ProxyProvider.html[`ProxyProvider`] builder. | ||
|
||
// tag::proxy-connect-method[] | ||
Netty's HTTP proxy support always uses `CONNECT` method in order to establish a tunnel to the specified proxy regardless of the scheme that is used `http` or `https`. | ||
(More information: https://github.com/netty/netty/issues/10475[Netty enforce HTTP proxy to support HTTP CONNECT method]). | ||
Some proxies might not support `CONNECT` method when the scheme is `http` or might need to be configured in order to support this way of communication. | ||
Sometimes this might be the reason for not being able to connect to the proxy. Consider checking the proxy documentation | ||
whether it supports or needs an additional configuration in order to support `CONNECT` method. | ||
// end::proxy-connect-method[] | ||
|
||
The following example uses `ProxyProvider`: | ||
|
||
{examples-link}/proxy/Application.java | ||
[%unbreakable] | ||
---- | ||
include::{examples-dir}/proxy/Application.java[lines=18..42] | ||
---- | ||
<1> Configures the connection establishment timeout to 20 seconds. |