From 89e34ae5ffcd0db094f3d76d74bcefbe1620c97e Mon Sep 17 00:00:00 2001 From: Olga MaciaszekSharma Date: Fri, 9 Feb 2024 14:23:59 +0100 Subject: [PATCH 1/2] Document @RequestAttribute See gh-32231 --- .../modules/ROOT/pages/integration/rest-clients.adoc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc index 3b483bafacf..c0b60089639 100644 --- a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc +++ b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc @@ -1001,6 +1001,11 @@ method parameters: `MultiValueMap` with multiple cookies, a `Collection` of values, or an individual value. Type conversion is supported for non-String values. +| `@RequestAttribute` +| Provide an `Object` to add as a request attribute. Available only when a client + that supports request attributes is used under the hood. At this point + only supported for `WebClient`. + |=== From 728d5eeb745bf4b84f7aafb0c87fd10f748e54ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 12 Feb 2024 10:35:30 +0100 Subject: [PATCH 2/2] Polish "Document @RequestAttribute" See gh-32231 --- .../modules/ROOT/pages/integration/rest-clients.adoc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc index c0b60089639..9bfd15450bc 100644 --- a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc +++ b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc @@ -973,6 +973,9 @@ method parameters: `Map` with multiple variables, or an individual value. Type conversion is supported for non-String values. +| `@RequestAttribute` +| Provide an `Object` to add as a request attribute. Only supported by `WebClient`. + | `@RequestBody` | Provide the body of the request either as an Object to be serialized, or a Reactive Streams `Publisher` such as `Mono`, `Flux`, or any other async type supported @@ -1001,11 +1004,6 @@ method parameters: `MultiValueMap` with multiple cookies, a `Collection` of values, or an individual value. Type conversion is supported for non-String values. -| `@RequestAttribute` -| Provide an `Object` to add as a request attribute. Available only when a client - that supports request attributes is used under the hood. At this point - only supported for `WebClient`. - |===