Skip to content

Add optional query param for adding headers to the server's response#146

Open
moritzschmitz-oviva wants to merge 1 commit into
traefik:masterfrom
moritzschmitz-oviva:feature/add-response-header-param
Open

Add optional query param for adding headers to the server's response#146
moritzschmitz-oviva wants to merge 1 commit into
traefik:masterfrom
moritzschmitz-oviva:feature/add-response-header-param

Conversation

@moritzschmitz-oviva

@moritzschmitz-oviva moritzschmitz-oviva commented Apr 9, 2025

Copy link
Copy Markdown

Add a feature to allow setting response headers via query params.

Derived from #31.

Comment thread app.go Outdated
@ldez

ldez commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

Note, this doesn't fix #31 because this issue was not related to query parameters but to a request without any arguments.
The issue was about CLI flags.

@moritzschmitz-oviva moritzschmitz-oviva requested a review from ldez April 9, 2025 16:39
Comment thread app_test.go Outdated
Comment thread app.go Outdated
@moritzschmitz-oviva

Copy link
Copy Markdown
Author

@ldez Thank you for the input!

@moritzschmitz-oviva moritzschmitz-oviva requested a review from ldez April 9, 2025 18:53
@emilevauge emilevauge removed the request for review from ldez May 22, 2025 13:27
@mmatur mmatur force-pushed the feature/add-response-header-param branch from fc653de to bf1aefd Compare May 22, 2025 13:30
@moritzschmitz-oviva

Copy link
Copy Markdown
Author

@mmatur I think your review got stale?

@moritzschmitz-oviva

Copy link
Copy Markdown
Author

@ldez @mmatur Anything I can do for this PR?

Add `?header=key=value` query parameter support to the root handler.
Multiple headers can be added by repeating the param, e.g.
`/?header=Cache-Control=no-cache&header=X-Foo=bar`.
@moritzschmitz-oviva moritzschmitz-oviva force-pushed the feature/add-response-header-param branch from 6180c93 to 609edbb Compare May 29, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants