Skip to content

Commit c43d2e2

Browse files
committed
Polishing
Closes gh-30959
1 parent 0d40108 commit c43d2e2

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

framework-docs/modules/ROOT/pages/integration/rest-clients.adoc

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,10 @@ method parameters:
495495
[[rest-http-interface-return-values]]
496496
=== Return Values
497497

498-
The supported return values vary depending on whether you are using
499-
`HttpExchangeAdapter` or `ReactorHttpExchangeAdapter`.
498+
The supported return values depend on the underlying client.
500499

501-
When using `HttpExchangeAdapter`, annotated HTTP exchange methods support
502-
the following return values:
500+
Clients adapted to `HttpExchangeAdapter` such as `RestClient` and `RestTemplate`
501+
support synchronous return values:
503502

504503
[cols="1,2", options="header"]
505504
|===
@@ -523,9 +522,9 @@ the following return values:
523522

524523
|===
525524

526-
When using `ReactorHttpExchangeAdapter`, annotated HTTP exchange methods support
527-
all the same values as the ones supported by `HttpExchangeAdapter`
528-
and also the following ones:
525+
Clients adapted to `ReactorHttpExchangeAdapter` such as `WebClient`, support all of above
526+
as well as reactive variants. The table below shows Reactor types, but you can also use
527+
other reactive types that are supported through the `ReactiveAdapterRegistry`:
529528

530529
[cols="1,2", options="header"]
531530
|===
@@ -560,16 +559,10 @@ response body stream.
560559

561560
|===
562561

563-
TIP: You can also use any other async or reactive types registered in the
564-
`ReactiveAdapterRegistry`.
565-
566-
While using the `ReactorHttpExchangeAdapter`, by default, the behavior
567-
of HTTP service methods with synchronous (blocking) method
568-
signature depends on connection and timeout settings of the underlying HTTP client.
569-
`HttpServiceProxyFactory.Builder` does expose a `blockTimeout` option that also lets you
570-
configure the maximum time to block for a response, but we recommend configuring timeout
571-
values directly on the underlying HTTP client, which likely provides more control over
572-
such settings.
562+
By default, the timeout for synchronous return values with `ReactorHttpExchangeAdapter`
563+
depends on how the underlying HTTP client is configured. You can set a `blockTimeout`
564+
value on the adapter level as well, but we recommend relying on timeout settings of the
565+
underlying HTTP client, which operates at a lower level and provides more control.
573566

574567

575568
[[rest-http-interface-exceptions]]

0 commit comments

Comments
 (0)