mirror of
https://github.com/labstack/echo.git
synced 2024-12-26 20:54:00 +02:00
6a74849290
Signed-off-by: Vishal Rana <vr@labstack.com>
34 lines
466 B
Go
34 lines
466 B
Go
package test
|
|
|
|
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) Object() interface{} {
|
|
return h.header
|
|
}
|
|
|
|
func (h *Header) reset(hdr http.Header) {
|
|
h.header = hdr
|
|
}
|