Skip to content

Use HttpHeaders#headerSet where appropriate #3596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spencergibb opened this issue Nov 14, 2024 · 1 comment
Closed

Use HttpHeaders#headerSet where appropriate #3596

spencergibb opened this issue Nov 14, 2024 · 1 comment
Labels
Milestone

Comments

@spencergibb
Copy link
Member

See spring-projects/spring-framework#33823

@spencergibb spencergibb added this to the 4.1.6 milestone Nov 14, 2024
@github-project-automation github-project-automation bot moved this to Done in 2023.0.4 Nov 14, 2024
@github-project-automation github-project-automation bot moved this to Done in 2024.0.0 Nov 14, 2024
@KENNYSOFT
Copy link

KENNYSOFT commented Nov 27, 2024

https://github.com/spring-projects/spring-framework/blob/v6.1.15/spring-web/src/main/java/org/springframework/http/HttpHeaders.java#L1873-L1887

/**
 * Return a view of the headers as an entry {@code Set} of key-list pairs.
 * Both {@link Iterator#remove()} and {@link java.util.Map.Entry#setValue}
 * are supported and mutate the headers.
 * <p>This collection is guaranteed to contain one entry per header name
 * even if the backing structure stores multiple casing variants of names,
 * at the cost of first copying the names into a case-insensitive set for
 * filtering the iteration.
 * @return a {@code Set} view that iterates over all headers in a
 * case-insensitive manner
 * @since 6.1.15
 */
public Set<Entry<String, List<String>>> headerSet() {
	return new CaseInsensitiveEntrySet(this.headers);
}

So, Spring Cloud Gateway 4.1.6 (in Spring Cloud 2023.0.4) requires Spring 6.1.15, available in Spring Boot 3.2.12, 3.3.6, or 3.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Status: Done
Development

No branches or pull requests

2 participants