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 add default header #129

Open
nosize opened this issue May 1, 2013 · 4 comments
Open

How add default header #129

nosize opened this issue May 1, 2013 · 4 comments

Comments

@nosize
Copy link

nosize commented May 1, 2013

Hello, How add default header?

@saggit
Copy link

saggit commented May 8, 2013

you may take a look at the tutorial at :http://webgo.io/tutorial.html

eg: override the Server header
ctx.SetHeader("Server", "123server", true)

@marktheunissen
Copy link

I think the question is how to set a header that applies to all requests?

@nosize
Copy link
Author

nosize commented Jul 1, 2013

Correct thinking. :)

@marktheunissen
Copy link

I tried and couldn't find a way to do this, so now I just call a single function as the first step of all request handlers, passing a pointer to the context.

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

3 participants