Show use of RequestEntity rather than HttpEntity

Issue: SPR-16608
This commit is contained in:
Rossen Stoyanchev
2018-03-19 08:57:01 -04:00
parent 99399084a6
commit 8651b8d4c1
2 changed files with 14 additions and 12 deletions

View File

@@ -89,9 +89,7 @@ import org.springframework.web.util.UriTemplateHandler;
* HTTP PATCH, HTTP PUT with response body, etc.). Note however that the underlying HTTP
* library used must also support the desired combination.
*
* <p>For each HTTP method there are three variants: two accept a URI template string
* and URI variables (array or map) while a third accepts a {@link URI}.
* Note that for URI templates it is assumed encoding is necessary, e.g.
* <p><strong>Note:</strong> For URI templates it is assumed encoding is necessary, e.g.
* {@code restTemplate.getForObject("http://example.com/hotel list")} becomes
* {@code "http://example.com/hotel%20list"}. This also means if the URI template
* or URI variables are already encoded, double encoding will occur, e.g.