mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
e4ab053bc8
Signed-off-by: Vishal Rana <vr@labstack.com>
35 lines
626 B
Go
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
|
|
}
|