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

Feature request: Add SetHeader in Request #207

Closed
pachico opened this issue May 22, 2024 · 2 comments
Closed

Feature request: Add SetHeader in Request #207

pachico opened this issue May 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@pachico
Copy link

pachico commented May 22, 2024

I see this is already present in other language SDKs but not here.

I can try to add it myself although I am not familiar with contribution guidelines for this project nor with the "bridge" that seems to be what needs to be exploited to achieve this.

@pachico pachico changed the title Feature request: Add SetHeaders in Request Feature request: Add SetHeader in Request May 22, 2024
@Water-Melon Water-Melon added the enhancement New feature or request label May 29, 2024
@gszr
Copy link
Member

gszr commented Jan 14, 2025

Hey @pachico,

The SetHeader method isn't part of the kong.Request package, but rather kong.Service.Request. Check out https://pkg.go.dev/github.com/Kong/[email protected]/service/request#Request.SetHeader. Alternatively, check out the sibling .AddHeader method.

I will close this one, but feel free to reopen if that doesn't answer your question.

@gszr gszr closed this as completed Jan 14, 2025
@pachico
Copy link
Author

pachico commented Jan 15, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants