Documentation ¶
Index ¶
- func ClientProto(cc *http2.MClientConn) types.Protocol
- func DecodeHeader(header types.HeaderMap) types.HeaderMap
- func EncodeHeader(header types.HeaderMap) http.Header
- func ServerProto(sc *http2.MServerConn) types.Protocol
- 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 ClientProto ¶ added in v0.11.0
func ClientProto(cc *http2.MClientConn) types.Protocol
func ServerProto ¶ added in v0.11.0
func ServerProto(sc *http2.MServerConn) types.Protocol
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.