about summary refs log tree commit diff
path: root/response.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2013-04-28 15:07:53 -0700
committerFranck Cuny <franck@lumberjaph.net>2013-04-28 15:07:53 -0700
commitd07a939b5ef5d0f4e72f0f23e2314a5e934b42a0 (patch)
tree857bd3ce2a1b84a8391a4965437fb9ae4ff392e4 /response.go
parent`BuildRouter` return a reference to itself. (diff)
downloadpath-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.go9
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) {
 }