Created
August 1, 2017 14:40
-
-
Save vmptk/e55b388953f819b576e8cfc06303da4d to your computer and use it in GitHub Desktop.
WebClient with SSL
This file contains hidden or 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
| // Build Netty SslContext | |
| SslContext sslContext = SslContextBuilder | |
| .forClient() | |
| // ... | |
| .build(); | |
| // Initialize ReactorClientHttpConnector with SslContext | |
| WebClient.create(new ReactorClientHttpConnector(opts -> opts.sslContext(sslContext))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment