Documentation ¶
Overview ¶
Package frames contains an implementation of the SPDY/3 frames.
Index ¶
- func ReadFrame(reader *bufio.Reader, subversion int) (frame common.Frame, err error)
- type CREDENTIAL
- func (frame *CREDENTIAL) Compress(comp common.Compressor) error
- func (frame *CREDENTIAL) Decompress(decomp common.Decompressor) error
- func (frame *CREDENTIAL) Name() string
- func (frame *CREDENTIAL) ReadFrom(reader io.Reader) (int64, error)
- func (frame *CREDENTIAL) String() string
- func (frame *CREDENTIAL) WriteTo(writer io.Writer) (int64, error)
- type DATA
- func (frame *DATA) Compress(comp common.Compressor) error
- func (frame *DATA) Decompress(decomp common.Decompressor) error
- func (frame *DATA) Name() string
- func (frame *DATA) ReadFrom(reader io.Reader) (int64, error)
- func (frame *DATA) String() string
- func (frame *DATA) WriteTo(writer io.Writer) (int64, error)
- type GOAWAY
- func (frame *GOAWAY) Compress(comp common.Compressor) error
- func (frame *GOAWAY) Decompress(decomp common.Decompressor) error
- func (frame *GOAWAY) Error() string
- func (frame *GOAWAY) Name() string
- func (frame *GOAWAY) ReadFrom(reader io.Reader) (int64, error)
- func (frame *GOAWAY) String() string
- func (frame *GOAWAY) WriteTo(writer io.Writer) (int64, error)
- type HEADERS
- func (frame *HEADERS) Compress(com common.Compressor) error
- func (frame *HEADERS) Decompress(decom common.Decompressor) error
- func (frame *HEADERS) Name() string
- func (frame *HEADERS) ReadFrom(reader io.Reader) (int64, error)
- func (frame *HEADERS) String() string
- func (frame *HEADERS) WriteTo(writer io.Writer) (int64, error)
- type PING
- func (frame *PING) Compress(comp common.Compressor) error
- func (frame *PING) Decompress(decomp common.Decompressor) error
- func (frame *PING) Name() string
- func (frame *PING) ReadFrom(reader io.Reader) (int64, error)
- func (frame *PING) String() string
- func (frame *PING) WriteTo(writer io.Writer) (int64, error)
- type RST_STREAM
- func (frame *RST_STREAM) Compress(comp common.Compressor) error
- func (frame *RST_STREAM) Decompress(decomp common.Decompressor) error
- func (frame *RST_STREAM) Error() string
- func (frame *RST_STREAM) Name() string
- func (frame *RST_STREAM) ReadFrom(reader io.Reader) (int64, error)
- func (frame *RST_STREAM) String() string
- func (frame *RST_STREAM) WriteTo(writer io.Writer) (int64, error)
- type SETTINGS
- func (frame *SETTINGS) Add(flags common.Flags, id uint32, value uint32)
- func (frame *SETTINGS) Compress(comp common.Compressor) error
- func (frame *SETTINGS) Decompress(decomp common.Decompressor) error
- func (frame *SETTINGS) Name() string
- func (frame *SETTINGS) ReadFrom(reader io.Reader) (int64, error)
- func (frame *SETTINGS) String() string
- func (frame *SETTINGS) WriteTo(writer io.Writer) (int64, error)
- type SYN_REPLY
- func (frame *SYN_REPLY) Compress(com common.Compressor) error
- func (frame *SYN_REPLY) Decompress(decom common.Decompressor) error
- func (frame *SYN_REPLY) Name() string
- func (frame *SYN_REPLY) ReadFrom(reader io.Reader) (int64, error)
- func (frame *SYN_REPLY) String() string
- func (frame *SYN_REPLY) WriteTo(writer io.Writer) (int64, error)
- type SYN_STREAM
- func (frame *SYN_STREAM) Compress(com common.Compressor) error
- func (frame *SYN_STREAM) Decompress(decom common.Decompressor) error
- func (frame *SYN_STREAM) Name() string
- func (frame *SYN_STREAM) ReadFrom(reader io.Reader) (int64, error)
- func (frame *SYN_STREAM) String() string
- func (frame *SYN_STREAM) WriteTo(writer io.Writer) (int64, error)
- type SYN_STREAMV3_1
- func (frame *SYN_STREAMV3_1) Compress(com common.Compressor) error
- func (frame *SYN_STREAMV3_1) Decompress(decom common.Decompressor) error
- func (frame *SYN_STREAMV3_1) Name() string
- func (frame *SYN_STREAMV3_1) ReadFrom(reader io.Reader) (int64, error)
- func (frame *SYN_STREAMV3_1) String() string
- func (frame *SYN_STREAMV3_1) WriteTo(writer io.Writer) (int64, error)
- type WINDOW_UPDATE
- func (frame *WINDOW_UPDATE) Compress(comp common.Compressor) error
- func (frame *WINDOW_UPDATE) Decompress(decomp common.Decompressor) error
- func (frame *WINDOW_UPDATE) Name() string
- func (frame *WINDOW_UPDATE) ReadFrom(reader io.Reader) (int64, error)
- func (frame *WINDOW_UPDATE) String() string
- func (frame *WINDOW_UPDATE) WriteTo(writer io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CREDENTIAL ¶
type CREDENTIAL struct { Slot uint16 Proof []byte Certificates []*x509.Certificate }
func (*CREDENTIAL) Compress ¶
func (frame *CREDENTIAL) Compress(comp common.Compressor) error
func (*CREDENTIAL) Decompress ¶
func (frame *CREDENTIAL) Decompress(decomp common.Decompressor) error
func (*CREDENTIAL) Name ¶
func (frame *CREDENTIAL) Name() string
func (*CREDENTIAL) String ¶
func (frame *CREDENTIAL) String() string
type DATA ¶
func (*DATA) Decompress ¶
func (frame *DATA) Decompress(decomp common.Decompressor) error
type GOAWAY ¶
type GOAWAY struct { LastGoodStreamID common.StreamID Status common.StatusCode }
func (*GOAWAY) Decompress ¶
func (frame *GOAWAY) Decompress(decomp common.Decompressor) error
type HEADERS ¶
type HEADERS struct { Flags common.Flags StreamID common.StreamID Header http.Header // contains filtered or unexported fields }
func (*HEADERS) Decompress ¶
func (frame *HEADERS) Decompress(decom common.Decompressor) error
type PING ¶
type PING struct {
PingID uint32
}
func (*PING) Decompress ¶
func (frame *PING) Decompress(decomp common.Decompressor) error
type RST_STREAM ¶
type RST_STREAM struct { StreamID common.StreamID Status common.StatusCode }
func (*RST_STREAM) Compress ¶
func (frame *RST_STREAM) Compress(comp common.Compressor) error
func (*RST_STREAM) Decompress ¶
func (frame *RST_STREAM) Decompress(decomp common.Decompressor) error
func (*RST_STREAM) Error ¶
func (frame *RST_STREAM) Error() string
func (*RST_STREAM) Name ¶
func (frame *RST_STREAM) Name() string
func (*RST_STREAM) String ¶
func (frame *RST_STREAM) String() string
type SETTINGS ¶
func (*SETTINGS) Decompress ¶
func (frame *SETTINGS) Decompress(decomp common.Decompressor) error
type SYN_REPLY ¶
type SYN_REPLY struct { Flags common.Flags StreamID common.StreamID Header http.Header // contains filtered or unexported fields }
func (*SYN_REPLY) Decompress ¶
func (frame *SYN_REPLY) Decompress(decom common.Decompressor) error
type SYN_STREAM ¶
type SYN_STREAM struct { Flags common.Flags StreamID common.StreamID AssocStreamID common.StreamID Priority common.Priority Slot byte Header http.Header // contains filtered or unexported fields }
func (*SYN_STREAM) Compress ¶
func (frame *SYN_STREAM) Compress(com common.Compressor) error
func (*SYN_STREAM) Decompress ¶
func (frame *SYN_STREAM) Decompress(decom common.Decompressor) error
func (*SYN_STREAM) Name ¶
func (frame *SYN_STREAM) Name() string
func (*SYN_STREAM) String ¶
func (frame *SYN_STREAM) String() string
type SYN_STREAMV3_1 ¶
type SYN_STREAMV3_1 struct { Flags common.Flags StreamID common.StreamID AssocStreamID common.StreamID Priority common.Priority Header http.Header // contains filtered or unexported fields }
SPDY/3.1
func (*SYN_STREAMV3_1) Compress ¶
func (frame *SYN_STREAMV3_1) Compress(com common.Compressor) error
func (*SYN_STREAMV3_1) Decompress ¶
func (frame *SYN_STREAMV3_1) Decompress(decom common.Decompressor) error
func (*SYN_STREAMV3_1) Name ¶
func (frame *SYN_STREAMV3_1) Name() string
func (*SYN_STREAMV3_1) ReadFrom ¶
func (frame *SYN_STREAMV3_1) ReadFrom(reader io.Reader) (int64, error)
func (*SYN_STREAMV3_1) String ¶
func (frame *SYN_STREAMV3_1) String() string
type WINDOW_UPDATE ¶
type WINDOW_UPDATE struct { StreamID common.StreamID DeltaWindowSize uint32 // contains filtered or unexported fields }
func (*WINDOW_UPDATE) Compress ¶
func (frame *WINDOW_UPDATE) Compress(comp common.Compressor) error
func (*WINDOW_UPDATE) Decompress ¶
func (frame *WINDOW_UPDATE) Decompress(decomp common.Decompressor) error
func (*WINDOW_UPDATE) Name ¶
func (frame *WINDOW_UPDATE) Name() string
func (*WINDOW_UPDATE) ReadFrom ¶
func (frame *WINDOW_UPDATE) ReadFrom(reader io.Reader) (int64, error)
func (*WINDOW_UPDATE) String ¶
func (frame *WINDOW_UPDATE) String() string
Click to show internal directories.
Click to hide internal directories.