Skip to content

Commit 5706ee1

Browse files
committed
Merge branch '6.1.x'
2 parents 316e531 + c3a0eaa commit 5706ee1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

framework-docs/modules/ROOT/pages/web/webflux-webclient/client-retrieve.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Java::
9797
Mono<Person> result = client.get()
9898
.uri("/persons/{id}", id).accept(MediaType.APPLICATION_JSON)
9999
.retrieve()
100-
.onStatus(HttpStatus::is4xxClientError, response -> ...)
101-
.onStatus(HttpStatus::is5xxServerError, response -> ...)
100+
.onStatus(HttpStatusCode::is4xxClientError, response -> ...)
101+
.onStatus(HttpStatusCode::is5xxServerError, response -> ...)
102102
.bodyToMono(Person.class);
103103
----
104104
@@ -109,8 +109,8 @@ Kotlin::
109109
val result = client.get()
110110
.uri("/persons/{id}", id).accept(MediaType.APPLICATION_JSON)
111111
.retrieve()
112-
.onStatus(HttpStatus::is4xxClientError) { ... }
113-
.onStatus(HttpStatus::is5xxServerError) { ... }
112+
.onStatus(HttpStatusCode::is4xxClientError) { ... }
113+
.onStatus(HttpStatusCode::is5xxServerError) { ... }
114114
.awaitBody<Person>()
115115
----
116116
======

0 commit comments

Comments
 (0)