Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

unique headers #97

Closed
wants to merge 12 commits into
from

Conversation

Projects
None yet
3 participants

Added basic handling for unique in the SetHeader method making use of the current http Header methods in the weekly branch of Go.

Changed SetCookie to be able to accept other cookie settings. Details in comments for that method.

Owner

hoisie commented Mar 22, 2012

I recently updated web.go to be better integrated with Go's http package. For instance, the web.Context now contains an http.Request and a ResponseWriter.

type Context struct {
    Request *http.Request
    Params  map[string]string
    Server  *Server
    ResponseWriter
}

This let's you use http.SetCookie. Is this okay for now?

Owner

hoisie commented Apr 13, 2013

Closing because these issues are fixed. The ctx.Header() method is also available for finer-grained control over headers.

@hoisie hoisie closed this Apr 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment