Update WebClient builder

Leave only one static, no-arg build() method for access to a Builder.

URI-related preferences are now exposed on the builder itself.

Improve Javadoc with base URI examples.
This commit is contained in:
Rossen Stoyanchev
2017-02-02 16:15:44 -05:00
parent acf511ac0e
commit 82a34f4b24
4 changed files with 157 additions and 90 deletions

View File

@@ -99,7 +99,7 @@ public class DefaultWebClientTests {
private WebClient.Builder builder() {
return WebClient.builder("/base").exchangeFunction(this.exchangeFunction);
return WebClient.builder().baseUrl("/base").exchangeFunction(this.exchangeFunction);
}
private ClientRequest<?> verifyExchange() {