Skip to content

Instantly share code, notes, and snippets.

@vmptk
Created August 1, 2017 14:40
Show Gist options
  • Save vmptk/e55b388953f819b576e8cfc06303da4d to your computer and use it in GitHub Desktop.
Save vmptk/e55b388953f819b576e8cfc06303da4d to your computer and use it in GitHub Desktop.
WebClient with SSL
// 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