Skip to content

Lower case headers in response and use TreeMap to allow case insensitive access#418

Merged
codefromthecrypt merged 1 commit into
OpenFeign:masterfrom
a-k-g:case-insensitive-response-headers
Jul 11, 2016
Merged

Lower case headers in response and use TreeMap to allow case insensitive access#418
codefromthecrypt merged 1 commit into
OpenFeign:masterfrom
a-k-g:case-insensitive-response-headers

Conversation

@a-k-g

@a-k-g a-k-g commented Jul 8, 2016

Copy link
Copy Markdown
Contributor

As per the discussion on https://gitter.im/Netflix/feign

Comment thread core/src/main/java/feign/Response.java Outdated
}

/**
* Map of header names to collection of values. This is a TreeMap which uses a case-insensitive

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to talk about implementation (in case it one day changes), you can just say..

/** Returns a case-insensitive mapping of header names to their values. */

@codefromthecrypt

Copy link
Copy Markdown

the change seems desirable. I made some style comments, but there's nothing concerning.

@a-k-g

a-k-g commented Jul 10, 2016

Copy link
Copy Markdown
Contributor Author

Rebased this PR to resolve merge conflicts on the changelog. Would be nice to have this merged soon.

Thanks again.

Comment thread CHANGELOG.md
* Adds support for encoded query parameters in `@QueryMap` via `@QueryMap(encoded = true)`
* Keys in `Response.headers` are now lower-cased. This map is now case-insensitive with regards to keys,
and iterates in lexicographic order.
* This is a step towards supporting http2, as header names in http1 are treated as case-insensitive

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even better than my suggestion. nice!

@codefromthecrypt codefromthecrypt merged commit 17cb578 into OpenFeign:master Jul 11, 2016
@codefromthecrypt

Copy link
Copy Markdown

Thanks to you!

@a-k-g a-k-g deleted the case-insensitive-response-headers branch July 11, 2016 09:59
schlosna referenced this pull request in palantir/atlasdb Feb 17, 2017
velo pushed a commit that referenced this pull request Oct 7, 2024
velo pushed a commit that referenced this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants