Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos in Kotlin WebClient example code #29538

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc
Expand Up @@ -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();
----

Expand Down Expand Up @@ -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...
Expand Down Expand Up @@ -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();
----

Expand Down Expand Up @@ -788,8 +788,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