1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-10 00:28:23 +02:00
echo/engine/standard/header.go
Vishal Rana f405794a7c Now using sync.Pool
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-04 14:40:08 -08:00

30 lines
410 B
Go

package standard
import "net/http"
type (
Header struct {
header http.Header
}
)
func (h *Header) Add(key, val string) {
h.header.Add(key, val)
}
func (h *Header) Del(key string) {
h.header.Del(key)
}
func (h *Header) Get(key string) string {
return h.header.Get(key)
}
func (h *Header) Set(key, val string) {
h.header.Set(key, val)
}
func (h *Header) reset(hdr http.Header) {
h.header = hdr
}