Fixed execute -> exchange
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3502 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
3c4ec9af4e
commit
3a821047d5
|
|
@ -1495,11 +1495,11 @@ URI location = template.postForLocation(uri, booking, "1");
|
|||
<title>Dealing with request and response headers</title>
|
||||
|
||||
<para>Besides the methods described above, the <classname>RestTemplate</classname>
|
||||
also has the <methodname>execute</methodname> method, which can be
|
||||
also has the <methodname>exchange</methodname> method, which can be
|
||||
used for arbitrary HTTP method execution based on the <classname>HttpEntity</classname>
|
||||
class.</para>
|
||||
|
||||
<para>Perhaps most importantly, the <methodname>execute</methodname>
|
||||
<para>Perhaps most importantly, the <methodname>exchange</methodname>
|
||||
method can be used to add request headers and read response headers.
|
||||
For example:</para>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue