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

doc: update HeadersPolicy documentation #2467

Merged
merged 1 commit into from Apr 27, 2020

Conversation

jpeach
Copy link
Contributor

@jpeach jpeach commented Apr 24, 2020

Update the API reference for HeadersPolicy to clarfy the semantics of
setting headers and to mention the special treatment of the Host header.

Rewrite the primary HTTPProxy guide to document that general header
rewriting is available in the HeadersPolicy fields.

This fixes #2462.

Signed-off-by: James Peach jpeach@vmware.com

@jpeach
Copy link
Contributor Author

jpeach commented Apr 24, 2020

I'm also thinking that we should fold the section titled "Proxy to external resource" in to the extenalname section. LMK.

Copy link
Member

@youngnick youngnick left a comment

Choose a reason for hiding this comment

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

LGTM

Update the API reference for `HeadersPolicy` to clarfy the semantics of
setting headers and to mention the special treatment of the `Host` header.

Rewrite the primary HTTPProxy guide to document that general header
rewriting is available in the `HeadersPolicy` fields.

This fixes projectcontour#2462.

Signed-off-by: James Peach <jpeach@vmware.com>
@codecov
Copy link

codecov bot commented Apr 27, 2020

Codecov Report

Merging #2467 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2467      +/-   ##
==========================================
+ Coverage   76.72%   76.76%   +0.03%     
==========================================
  Files          68       68              
  Lines        5522     5522              
==========================================
+ Hits         4237     4239       +2     
+ Misses       1188     1187       -1     
+ Partials       97       96       -1     
Impacted Files Coverage Δ
internal/dag/cache.go 95.98% <0.00%> (+0.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d77189...202ba8b. Read the comment docs.

@jpeach jpeach merged commit 784775e into projectcontour:master Apr 27, 2020
@jpeach jpeach deleted the doc-header-rewrite branch April 27, 2020 01:48
@jpeach jpeach added this to the 1.5.0 milestone May 5, 2020
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.

Header rewrite docs claim it only works for the Host header
2 participants