From 8a35f33c85995eddccb0fc9400775e30bde70952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gasser?= Date: Mon, 21 Nov 2022 23:53:16 +0100 Subject: [PATCH] Fix some typos in Kotlin WebClient example code --- .../src/docs/asciidoc/web/webflux-webclient.adoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc b/framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc index e74d6f9d12e5..30fef6b023d5 100644 --- a/framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc +++ b/framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc @@ -253,7 +253,7 @@ To configure a connection timeout: .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000); val webClient = WebClient.builder() - .clientConnector(new ReactorClientHttpConnector(httpClient)) + .clientConnector(ReactorClientHttpConnector(httpClient)) .build(); ---- @@ -281,8 +281,8 @@ To configure a read or write timeout: val httpClient = HttpClient.create() .doOnConnected { conn -> conn - .addHandlerLast(new ReadTimeoutHandler(10)) - .addHandlerLast(new WriteTimeoutHandler(10)) + .addHandlerLast(ReadTimeoutHandler(10)) + .addHandlerLast(WriteTimeoutHandler(10)) } // Create WebClient... @@ -392,7 +392,7 @@ The following example shows how to customize Jetty `HttpClient` settings: httpClient.cookieStore = ... val webClient = WebClient.builder() - .clientConnector(new JettyClientHttpConnector(httpClient)) + .clientConnector(JettyClientHttpConnector(httpClient)) .build(); ---- @@ -788,8 +788,8 @@ multipart request. The following example shows how to create a `MultiValueMap