Documentation ¶
Index ¶
Constants ¶
View Source
const ( SettingFrameType = 0x4 HeadersFrameType = 0x1 )
View Source
const ( SettingEnableWebTransport = 0x2b603742 SettingH3Datagram = 0xffd277 )
View Source
const (
ControlStreamType = 0x00
)
Variables ¶
This section is empty.
Functions ¶
func SkipUnknownFrame ¶
func SkipUnknownFrame(stream quic.ReceiveStream)
SkipUnknownFrame 跳过未知的Frame
Types ¶
type HeadersFrame ¶
type HeadersFrame struct { Header http.Header // 特殊字段 Path string Authority string Protocol string }
HeadersFrame
HEADERS Frame { Type (i) = 0x1, Length (i), Encoded Field Section (..), }
func ParseHeadersFrame ¶
func ParseHeadersFrame(uniStream quic.ReceiveStream) *HeadersFrame
func (*HeadersFrame) ToBytes ¶
func (f *HeadersFrame) ToBytes(status int) []byte
type SettingFrame ¶
SettingFrame
SETTINGS Frame { Type (i) = 0x4, Length (i), Setting (..) ..., } Setting { Identifier (i), Value (i), }
func ParseSettingFrame ¶
func ParseSettingFrame(uniStream quic.ReceiveStream) *SettingFrame
func (*SettingFrame) ToBytes ¶
func (f *SettingFrame) ToBytes() []byte
Click to show internal directories.
Click to hide internal directories.