2016-01-29 09:46:11 +02:00
|
|
|
package fasthttp
|
|
|
|
|
|
|
|
import "github.com/valyala/fasthttp"
|
|
|
|
|
|
|
|
type (
|
|
|
|
RequestHeader struct {
|
2016-02-09 08:17:20 +02:00
|
|
|
header fasthttp.RequestHeader
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ResponseHeader struct {
|
2016-02-09 08:17:20 +02:00
|
|
|
header fasthttp.ResponseHeader
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (h *RequestHeader) Add(key, val string) {
|
|
|
|
// h.RequestHeader.Add(key, val)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *RequestHeader) Del(key string) {
|
2016-02-09 08:17:20 +02:00
|
|
|
h.header.Del(key)
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *RequestHeader) Get(key string) string {
|
2016-02-09 08:17:20 +02:00
|
|
|
// return h.header.Peek(key)
|
|
|
|
return ""
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *RequestHeader) Set(key, val string) {
|
2016-02-09 08:17:20 +02:00
|
|
|
h.header.Set(key, val)
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *ResponseHeader) Add(key, val string) {
|
2016-02-09 08:17:20 +02:00
|
|
|
// h.header.Add(key, val)
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *ResponseHeader) Del(key string) {
|
2016-02-09 08:17:20 +02:00
|
|
|
h.header.Del(key)
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (h *ResponseHeader) Get(key string) string {
|
|
|
|
// return h.ResponseHeader.Get(key)
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *ResponseHeader) Set(key, val string) {
|
2016-02-09 08:17:20 +02:00
|
|
|
h.header.Set(key, val)
|
2016-01-29 09:46:11 +02:00
|
|
|
}
|