Browse Source

Fix syntax for RequestEntity headers example in ref docs

Closes gh-26876
pull/26905/head
K 4 years ago committed by GitHub
parent
commit
26ed6d8bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/docs/asciidoc/integration.adoc

2
src/docs/asciidoc/integration.adoc

@ -163,7 +163,7 @@ You can use the `exchange()` methods to specify request headers, as the followin
URI uri = UriComponentsBuilder.fromUriString(uriTemplate).build(42); URI uri = UriComponentsBuilder.fromUriString(uriTemplate).build(42);
RequestEntity<Void> requestEntity = RequestEntity.get(uri) RequestEntity<Void> requestEntity = RequestEntity.get(uri)
.header(("MyRequestHeader", "MyValue") .header("MyRequestHeader", "MyValue")
.build(); .build();
ResponseEntity<String> response = template.exchange(requestEntity, String.class); ResponseEntity<String> response = template.exchange(requestEntity, String.class);

Loading…
Cancel
Save