diff options
author | Franck Cuny <franck@lumberjaph.net> | 2013-04-28 15:07:53 -0700 |
---|---|---|
committer | Franck Cuny <franck@lumberjaph.net> | 2013-04-28 15:07:53 -0700 |
commit | d07a939b5ef5d0f4e72f0f23e2314a5e934b42a0 (patch) | |
tree | 857bd3ce2a1b84a8391a4965437fb9ae4ff392e4 /response.go | |
parent | `BuildRouter` return a reference to itself. (diff) | |
download | path-router-d07a939b5ef5d0f4e72f0f23e2314a5e934b42a0.tar.gz |
By calling AddOptions on the router, a route for OPTIONS is added
The AddOptions method on the Router creates a route to respond to the OPTIONS request, and list all the supported HTTP methods for the given route.
Diffstat (limited to 'response.go')
-rw-r--r-- | response.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/response.go b/response.go index d7069d7..e71b546 100644 --- a/response.go +++ b/response.go @@ -1,7 +1,10 @@ package mooh type Response struct { - Location string - Content string - Status int + Headers map[string][]string + Content string + Status int +} + +func (self *Response) AddHeader(headerName string, headerValue string) { } |