Polishing

This commit is contained in:
Juergen Hoeller
2017-10-10 22:18:09 +02:00
parent 6833d4cdff
commit 699fde91db
2 changed files with 4 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ You can also get a stream of objects decoded from the response:
[subs="verbatim,quotes"]
----
Flux<Quote> result = client.get()
.uri("/quotes").accept(TEXT_EVENT_STREAM)
.uri("/quotes").accept(MediaType.TEXT_EVENT_STREAM)
.retrieve()
.bodyToFlux(Quote.class);
----
@@ -60,7 +60,7 @@ By default, responses with 4xx or 5xx status codes result in an error of type
.retrieve()
.onStatus(HttpStatus::is4xxServerError, response -> ...)
.onStatus(HttpStatus::is5xxServerError, response -> ...)
.bodyToFlux(Person.class);
.bodyToMono(Person.class);
----