1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-26 20:54:00 +02:00
echo/engine/standard/header.go
Vishal Rana e4ab053bc8 More godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-14 23:33:16 -07:00

35 lines
626 B
Go

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