You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -115,6 +120,7 @@ For more details on working with and encoding URIs, see xref:web/webmvc/mvc-uri-
115
120
116
121
If necessary, the HTTP request can be manipulated by adding request headers with `header(String, String)`, `headers(Consumer<HttpHeaders>`, or with the convenience methods `accept(MediaType...)`, `acceptCharset(Charset...)` and so on.
117
122
For HTTP requests that can contain a body (`POST`, `PUT`, and `PATCH`), additional methods are available: `contentType(MediaType)`, and `contentLength(long)`.
123
+
You can set an API version for the request if the client is configured with `ApiVersionInserter`.
118
124
119
125
The request body itself can be set by `body(Object)`, which internally uses <<rest-message-conversion>>.
120
126
Alternatively, the request body can be set using a `ParameterizedTypeReference`, allowing you to use generics.
0 commit comments