Skip to content
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

Open up HTTP headers #2540

Closed
Paikan opened this Issue Jan 11, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@Paikan
Copy link
Contributor

Paikan commented Jan 11, 2013

For example it would be nice to have the number of hits sent back in the response HTTP headers for relevant APIs. It would allow to define easily various cache policies (like different TTLs for no results...) without parsing the response body when requesting ES through a cache layer (like Varnish in my precise use case)

Original post in the ML https://groups.google.com/d/topic/elasticsearch/cJVMbQun8Oo/discussion

@spinscale

This comment has been minimized.

Copy link
Member

spinscale commented Feb 20, 2013

This would also allow to implement #2654 as a http redirect using a "Location:" header instead of the html based rewrite.

spinscale added a commit to spinscale/elasticsearch that referenced this issue May 3, 2013

Allow to set headers in HTTP response
This commit allows to set custom headers in HTTP responses (like
setting the WWW-Authenticate header for basic auth) by adding
RestRequest.addHeader() method.

Closes elastic#2936, elastic#2540

To get the history right: This is based on PR elastic#2723

@spinscale spinscale closed this in 21fcc48 May 10, 2013

spinscale added a commit that referenced this issue May 12, 2013

Allow to set headers in HTTP response
This commit allows to set custom headers in HTTP responses (like
setting the WWW-Authenticate header for basic auth) by adding
RestRequest.addHeader() method.

Closes #2936
Closes #2540

To get the history right: This is based on PR #2723

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015

Allow to set headers in HTTP response
This commit allows to set custom headers in HTTP responses (like
setting the WWW-Authenticate header for basic auth) by adding
RestRequest.addHeader() method.

Closes elastic#2936
Closes elastic#2540

To get the history right: This is based on PR elastic#2723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.