h3

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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

type SettingFrame struct {
	Payload map[uint64]uint64
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL