Documentation ¶
Index ¶
Constants ¶
View Source
const ( StreamTypeControl = 0x00 StreamTypePush = 0x01 )
View Source
const ( FrameTypeDATA = 0x0 FrameTypeHEADERS = 0x1 FrameTypePRIORITY = 0x2 FrameTypeCANCEL_PUSH = 0x3 FrameTypeSETTINGS = 0x4 FrameTypePUSH_PROMISE = 0x5 FrameTypeGOAWAY = 0x7 FrameTypeMAX_PUSH_ID = 0xd )
View Source
const ( ElementTypeRequestStream = 0x00 ElementTypePushStream = 0x01 ElementTypePlaceholder = 0x10 ElementTypeRootOfTheTree = 0x11 )
View Source
const ( SETTINGS_HEADER_TABLE_SIZE = 0x01 SETTINGS_MAX_HEADER_LIST_SIZE = 0x06 SETTINGS_QPACK_BLOCKED_STREAMS = 0x07 SETTINGS_NUM_PLACEHOLDERS = 0x09 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CANCEL_PUSH ¶
type CANCEL_PUSH struct { HTTPFrameHeader PushID VarInt }
func NewCANCEL_PUSH ¶
func NewCANCEL_PUSH(pushID uint64) *CANCEL_PUSH
func ReadCANCEL_PUSH ¶
func ReadCANCEL_PUSH(buffer *bytes.Reader) *CANCEL_PUSH
func (*CANCEL_PUSH) Name ¶
func (f *CANCEL_PUSH) Name() string
func (*CANCEL_PUSH) WriteTo ¶
func (f *CANCEL_PUSH) WriteTo(buffer *bytes.Buffer)
type DATA ¶
type DATA struct { HTTPFrameHeader Payload []byte }
type HEADERS ¶
type HEADERS struct { HTTPFrameHeader HeaderBlock []byte }
func NewHEADERS ¶
func ReadHEADERS ¶
type HTTPFrame ¶
type HTTPFrame interface { FrameType() uint64 Name() string WriteTo(buffer *bytes.Buffer) WireLength() uint64 }
func ReadHTTPFrame ¶
type HTTPFrameHeader ¶
type HTTPFrameHeader struct { Type VarInt Length VarInt }
func ReadHTTPFrameHeader ¶
func ReadHTTPFrameHeader(buffer *bytes.Reader) HTTPFrameHeader
func (*HTTPFrameHeader) FrameType ¶
func (h *HTTPFrameHeader) FrameType() uint64
func (*HTTPFrameHeader) WireLength ¶
func (h *HTTPFrameHeader) WireLength() uint64
func (*HTTPFrameHeader) WriteTo ¶
func (h *HTTPFrameHeader) WriteTo(buffer *bytes.Buffer)
type MAX_PUSH_ID ¶
type MAX_PUSH_ID struct { HTTPFrameHeader PushID VarInt }
func NewMAX_PUSH_ID ¶
func NewMAX_PUSH_ID(pushID uint64) *MAX_PUSH_ID
func ReadMAX_PUSH_ID ¶
func ReadMAX_PUSH_ID(buffer *bytes.Reader) *MAX_PUSH_ID
func (*MAX_PUSH_ID) Name ¶
func (f *MAX_PUSH_ID) Name() string
func (*MAX_PUSH_ID) WriteTo ¶
func (f *MAX_PUSH_ID) WriteTo(buffer *bytes.Buffer)
type PRIORITY ¶
type PRIORITY struct { HTTPFrameHeader PrioritizedType uint8 DependencyType uint8 Empty uint8 Exclusive bool PrioritizedElementID VarInt ElementDependencyID VarInt Weight uint8 }
func NewPRIORITY ¶
func ReadPRIORITY ¶
type PUSH_PROMISE ¶
type PUSH_PROMISE struct { HTTPFrameHeader PushID VarInt HeaderBlock []byte }
func NewPUSH_PROMISE ¶
func NewPUSH_PROMISE(pushID uint64, headerBlock []byte) *PUSH_PROMISE
func ReadPUSH_PROMISE ¶
func ReadPUSH_PROMISE(buffer *bytes.Reader) *PUSH_PROMISE
func (*PUSH_PROMISE) Name ¶
func (f *PUSH_PROMISE) Name() string
func (*PUSH_PROMISE) WriteTo ¶
func (f *PUSH_PROMISE) WriteTo(buffer *bytes.Buffer)
type SETTINGS ¶
type SETTINGS struct { HTTPFrameHeader Settings []Setting }
func NewSETTINGS ¶
func ReadSETTINGS ¶
type UnknownFrame ¶
type UnknownFrame struct { HTTPFrameHeader OpaquePayload []byte }
func ReadUnknownFrame ¶
func ReadUnknownFrame(buffer *bytes.Reader) *UnknownFrame
func (*UnknownFrame) Name ¶
func (f *UnknownFrame) Name() string
func (*UnknownFrame) WriteTo ¶
func (f *UnknownFrame) WriteTo(buffer *bytes.Buffer)
Click to show internal directories.
Click to hide internal directories.