mirror of
https://github.com/labstack/echo.git
synced 2025-03-31 22:05:06 +02:00
30 lines
403 B
Go
30 lines
403 B
Go
package standard
|
|
|
|
import "net/http"
|
|
|
|
type (
|
|
Header struct {
|
|
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
|
|
}
|