Skip to content

Comments

Add CLI flag to add additional HTTP headers#82

Merged
martialblog merged 2 commits intomainfrom
feature/headers
Apr 7, 2025
Merged

Add CLI flag to add additional HTTP headers#82
martialblog merged 2 commits intomainfrom
feature/headers

Conversation

@martialblog
Copy link
Member

This PR adds a CLI flag to add additional HTTP headers:

check_prometheus health --header "X-foo: bar" --header "X-bar: foo"

Fixes #79

@martialblog
Copy link
Member Author

@RincewindsHat once this works as expected we could maybe move it to go-check-network, but for now I'm fine with having it just here.

@RincewindsHat
Copy link
Member

sounds like a fine idea.

@martialblog martialblog added this to the v0.4.0 milestone Apr 7, 2025
@martialblog martialblog merged commit a4017c7 into main Apr 7, 2025
2 checks passed
@martialblog martialblog deleted the feature/headers branch April 7, 2025 06:51
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.

[Feature]: HTTP Request Headers

2 participants