mirror of
https://github.com/labstack/echo.git
synced 2025-01-10 00:28:23 +02:00
688293b5ed
Signed-off-by: Vishal Rana <vr@labstack.com>
47 lines
845 B
Go
47 lines
845 B
Go
package fasthttp
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
type (
|
|
RequestHeader struct {
|
|
fasthttp.RequestHeader
|
|
}
|
|
|
|
ResponseHeader struct {
|
|
fasthttp.ResponseHeader
|
|
}
|
|
)
|
|
|
|
func (h *RequestHeader) Add(key, val string) {
|
|
// h.RequestHeader.Add(key, val)
|
|
}
|
|
|
|
func (h *RequestHeader) Del(key string) {
|
|
h.RequestHeader.Del(key)
|
|
}
|
|
|
|
func (h *RequestHeader) Get(key string) string {
|
|
return string(h.RequestHeader.Peek(key))
|
|
}
|
|
|
|
func (h *RequestHeader) Set(key, val string) {
|
|
h.RequestHeader.Set(key, val)
|
|
}
|
|
|
|
func (h *ResponseHeader) Add(key, val string) {
|
|
// h.ResponseHeader.Add(key, val)
|
|
}
|
|
|
|
func (h *ResponseHeader) Del(key string) {
|
|
h.ResponseHeader.Del(key)
|
|
}
|
|
|
|
func (h *ResponseHeader) Get(key string) string {
|
|
// return h.ResponseHeader.Get(key)
|
|
return ""
|
|
}
|
|
|
|
func (h *ResponseHeader) Set(key, val string) {
|
|
h.ResponseHeader.Set(key, val)
|
|
}
|