Skip to content

Commit

Permalink
Fix some typos in Kotlin WebClient example code
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Nov 22, 2022
1 parent 72b44ce commit 00da70e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/docs/asciidoc/web/webflux-webclient.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ To configure a connection timeout:
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000);
val webClient = WebClient.builder()
.clientConnector(new ReactorClientHttpConnector(httpClient))
.clientConnector(ReactorClientHttpConnector(httpClient))
.build();
----

Expand Down Expand Up @@ -280,8 +280,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...
Expand Down Expand Up @@ -357,7 +357,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();
----

Expand Down Expand Up @@ -752,8 +752,8 @@ multipart request. The following example shows how to create a `MultiValueMap<St
----
val builder = MultipartBodyBuilder().apply {
part("fieldPart", "fieldValue")
part("filePart1", new FileSystemResource("...logo.png"))
part("jsonPart", new Person("Jason"))
part("filePart1", FileSystemResource("...logo.png"))
part("jsonPart", Person("Jason"))
part("myPart", part) // Part from a server request
}
Expand Down

0 comments on commit 00da70e

Please sign in to comment.