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

How to print request headers in this proxy #54

Open
lutskboy opened this issue Dec 2, 2023 · 2 comments
Open

How to print request headers in this proxy #54

lutskboy opened this issue Dec 2, 2023 · 2 comments

Comments

@lutskboy
Copy link

lutskboy commented Dec 2, 2023

Hi
I need get all request headers. Please write example code. Thanks

@bfuertes
Copy link

bfuertes commented Dec 3, 2023

How about you learn to write it yourself?
We may help if you have any questions, not to do your homework.

@lutskboy
Copy link
Author

lutskboy commented Dec 4, 2023

I am tryed insert code in file request.go, but this not work for me
Error req have not method Header
Help me please. I'm sure it's simple, but I don't understand the language Golang.
for key, values := range req.Header { for _, value := range values { fmt.Printf("%s: %s\n", key, value) } }

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

No branches or pull requests

2 participants