mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Show use of RequestEntity rather than HttpEntity
Issue: SPR-16608
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user