Skip to content

Conversation

nosan
Copy link
Contributor

@nosan nosan commented Jun 21, 2019

Update RestTemplateBuilder.defaultHeader to use an array for a default header value instead of a single value.
Prior to this commit, only a single value could be used.

It can be useful in case of when folks would like to specify a default header for Accept header. e.g.

		RestTemplate template = this.builder
				.defaultHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE)
				.build();

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 21, 2019
…` param instead of a single value.

Prior to this commit, only a single value can be used.
@nosan nosan changed the title Update RestTemplateBuilder.defaultHeader() to use varargs for values instead of a single value Update RestTemplateBuilder.defaultHeader to use an array for a default header value instead of a single value. Jun 21, 2019
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 26, 2019
@philwebb philwebb added this to the 2.2.x milestone Jun 26, 2019
@wilkinsona wilkinsona changed the title Update RestTemplateBuilder.defaultHeader to use an array for a default header value instead of a single value. Update RestTemplateBuilder.defaultHeader to use an array for a default header value instead of a single value Jun 29, 2019
@wilkinsona wilkinsona self-assigned this Jun 29, 2019
@wilkinsona wilkinsona modified the milestones: 2.2.x, 2.2.0.M5 Jun 29, 2019
@nosan nosan deleted the enhancement-2 branch June 30, 2019 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants