Update section in reference on WebClient

Rename "Builder" sub-section to "Configuration" and move it in the
beginning before all others since it explains how to create a client
in the first place.

Update content on Reactor Netty connector based on the API in 0.8 and
specifically address Reactor Netty resources and lifecycle.

Issue: SPR-16963
This commit is contained in:
Rossen Stoyanchev
2018-08-14 15:48:14 +03:00
parent 2f732a8dea
commit 7a0c03e05e
3 changed files with 145 additions and 86 deletions

View File

@@ -51,14 +51,14 @@ public class JettyClientHttpConnector implements ClientHttpConnector, SmartLifec
/**
* Create a Jetty {@link ClientHttpConnector} with the default {@link HttpClient}.
* Default constructor that creates a new instance of {@link HttpClient}.
*/
public JettyClientHttpConnector() {
this(new HttpClient());
}
/**
* Create a Jetty {@link ClientHttpConnector} with the given {@link HttpClient}.
* Constructor with an initialized {@link HttpClient}.
*/
public JettyClientHttpConnector(HttpClient httpClient) {
Assert.notNull(httpClient, "HttpClient is required");