@@ -495,11 +495,10 @@ method parameters:
495
495
[[rest-http-interface-return-values]]
496
496
=== Return Values
497
497
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.
500
499
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:
503
502
504
503
[cols="1,2", options="header"]
505
504
|===
@@ -523,9 +522,9 @@ the following return values:
523
522
524
523
|===
525
524
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` :
529
528
530
529
[cols="1,2", options="header"]
531
530
|===
@@ -560,16 +559,10 @@ response body stream.
560
559
561
560
|===
562
561
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.
573
566
574
567
575
568
[[rest-http-interface-exceptions]]
0 commit comments