Versions in this module Expand all Collapse all v1 v1.70.0 Feb 9, 2025 Changes in this version + type ContinuationFrame struct + HdrBlock []byte + func (f *ContinuationFrame) Free() + func (f *ContinuationFrame) Header() *FrameHeader + type DataFrame struct + Data []byte + func (f *DataFrame) Free() + func (f *DataFrame) Header() *FrameHeader + type ErrCode uint32 + const ErrCodeCancel + const ErrCodeCompression + const ErrCodeConnect + const ErrCodeEnhanceYourCalm + const ErrCodeFlowControl + const ErrCodeFrameSize + const ErrCodeHTTP11Required + const ErrCodeInadequateSecurity + const ErrCodeInternal + const ErrCodeNoError + const ErrCodeProtocol + const ErrCodeRefusedStream + const ErrCodeSettingsTimeout + const ErrCodeStreamClosed + func (err ErrCode) String() string + type Flag uint8 + const FlagContinuationEndHeaders + const FlagDataEndStream + const FlagDataPadded + const FlagHeadersEndHeaders + const FlagHeadersEndStream + const FlagHeadersPadded + const FlagHeadersPriority + const FlagPingAck + const FlagSettingsAck + func (f Flag) IsSet(flag Flag) bool + type Frame interface + Free func() + Header func() *FrameHeader + type FrameHeader struct + Flags Flag + Size uint32 + StreamID uint32 + Type FrameType + type FrameType uint8 + const FrameTypeContinuation + const FrameTypeData + const FrameTypeGoAway + const FrameTypeHeaders + const FrameTypePing + const FrameTypeRSTStream + const FrameTypeSettings + const FrameTypeWindowUpdate + type Framer interface + ReadFrame func() (Frame, error) + WriteContinuation func(streamID uint32, endHeaders bool, headerBlock []byte) error + WriteData func(streamID uint32, endStream bool, data ...[]byte) error + WriteGoAway func(maxStreamID uint32, code ErrCode, debugData []byte) error + WriteHeaders func(streamID uint32, endStream, endHeaders bool, headerBlocks []byte) error + WritePing func(ack bool, data [8]byte) error + WriteRSTStream func(streamID uint32, code ErrCode) error + WriteSettings func(settings ...Setting) error + WriteSettingsAck func() error + WriteWindowUpdate func(streamID, inc uint32) error + type FramerBridge struct + func NewFramerBridge(w io.Writer, r io.Reader, maxHeaderListSize uint32, pool mem.BufferPool) *FramerBridge + func (fr *FramerBridge) ReadFrame() (Frame, error) + func (fr *FramerBridge) WriteContinuation(streamID uint32, endHeaders bool, headerBlock []byte) error + func (fr *FramerBridge) WriteData(streamID uint32, endStream bool, data ...[]byte) error + func (fr *FramerBridge) WriteGoAway(maxStreamID uint32, code ErrCode, debugData []byte) error + func (fr *FramerBridge) WriteHeaders(streamID uint32, endStream, endHeaders bool, headerBlock []byte) error + func (fr *FramerBridge) WritePing(ack bool, data [8]byte) error + func (fr *FramerBridge) WriteRSTStream(streamID uint32, code ErrCode) error + func (fr *FramerBridge) WriteSettings(settings ...Setting) error + func (fr *FramerBridge) WriteSettingsAck() error + func (fr *FramerBridge) WriteWindowUpdate(streamID, inc uint32) error + type GoAwayFrame struct + Code ErrCode + DebugData []byte + LastStreamID uint32 + func (f *GoAwayFrame) Free() + func (f *GoAwayFrame) Header() *FrameHeader + type HeadersFrame struct + HdrBlock []byte + func (f *HeadersFrame) Free() + func (f *HeadersFrame) Header() *FrameHeader + type MetaHeadersFrame struct + Fields []hpack.HeaderField + Truncated bool + func (f *MetaHeadersFrame) Free() + func (f *MetaHeadersFrame) Header() *FrameHeader + type PingFrame struct + Data []byte + func (f *PingFrame) Free() + func (f *PingFrame) Header() *FrameHeader + type RSTStreamFrame struct + Code ErrCode + func (f *RSTStreamFrame) Free() + func (f *RSTStreamFrame) Header() *FrameHeader + type Setting struct + ID SettingID + Value uint32 + type SettingID uint16 + const SettingsEnablePush + const SettingsHeaderTableSize + const SettingsInitialWindowSize + const SettingsMaxConcurrentStreams + const SettingsMaxFrameSize + const SettingsMaxHeaderListSize + type SettingsFrame struct + Settings []Setting + func (f *SettingsFrame) Free() + func (f *SettingsFrame) Header() *FrameHeader + type UnknownFrame struct + Payload []byte + func (f *UnknownFrame) Free() + func (f *UnknownFrame) Header() *FrameHeader + type WindowUpdateFrame struct + Inc uint32 + func (f *WindowUpdateFrame) Free() + func (f *WindowUpdateFrame) Header() *FrameHeader v1.70.0-fix Feb 9, 2025