1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-15 01:34:53 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-16 16:27:31 -07:00
parent 111d65a5b4
commit 9795e59c43
4 changed files with 44 additions and 0 deletions

View File

@ -24,6 +24,16 @@ func (h *Header) Set(key, val string) {
h.header.Set(key, val)
}
func (h *Header) Keys() (keys []string) {
keys = make([]string, len(h.header))
i := 0
for k := range h.header {
keys[i] = k
i++
}
return
}
func (h *Header) reset(hdr http.Header) {
h.header = hdr
}