Documentation ¶
Index ¶
- func DecodeHeader(header types.HeaderMap) types.HeaderMap
- func EncodeHeader(in map[string]string) (header http.Header)
- func EngineClient(cc *http2.MClientConn) types.ProtocolEngine
- func EngineServer(sc *http2.MServerConn) types.ProtocolEngine
- type HeaderMap
- func (h *HeaderMap) Add(key string, value string)
- func (h HeaderMap) ByteSize() uint64
- func (h *HeaderMap) Clone() types.HeaderMap
- func (h *HeaderMap) Del(key string)
- func (h *HeaderMap) Get(key string) (value string, ok bool)
- func (h HeaderMap) Range(f func(key, value string) bool)
- func (h *HeaderMap) Set(key string, value string)
- type Http2BufferCtx
- type Http2Buffers
- type ReqHeader
- type RspHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EngineClient ¶
func EngineClient(cc *http2.MClientConn) types.ProtocolEngine
func EngineServer ¶
func EngineServer(sc *http2.MServerConn) types.ProtocolEngine
Types ¶
type HeaderMap ¶
func NewHeaderMap ¶
func (*HeaderMap) Add ¶
Set key-value pair in header map, the previous pair will be replaced if exists
type Http2BufferCtx ¶
type Http2BufferCtx struct {
buffer.TempBufferCtx
}
func (Http2BufferCtx) New ¶
func (ctx Http2BufferCtx) New() interface{}
func (Http2BufferCtx) Reset ¶
func (ctx Http2BufferCtx) Reset(i interface{})
type Http2Buffers ¶
type Http2Buffers struct { }
func Http2BuffersByContext ¶
func Http2BuffersByContext(ctx context.Context) *Http2Buffers
type ReqHeader ¶
func NewReqHeader ¶
Click to show internal directories.
Click to hide internal directories.