Documentation
¶
Index ¶
- type PermessageDeflate
- func (extension *PermessageDeflate) Accept(response map[string]string) bool
- func (extension *PermessageDeflate) Compress(payload []byte) ([]byte, error)
- func (extension *PermessageDeflate) Decompress(payload []byte) ([]byte, error)
- func (extension *PermessageDeflate) Name() string
- func (extension *PermessageDeflate) Negotiate(offer map[string]string) (map[string]string, bool)
- func (extension *PermessageDeflate) Parameters() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermessageDeflate ¶
type PermessageDeflate struct {
ServerNoContextTakeover bool
ClientNoContextTakeover bool
ServerMaxWindowBits int // 8-15, 0 means default (15 = 32KB)
ClientMaxWindowBits int // 8-15, 0 means default (15 = 32KB)
CompressionLevel int // 0 (none) to 9 (best)
// contains filtered or unexported fields
}
PermessageDeflate implements the "permessage-deflate" WebSocket extension as defined in RFC 7692.
func NewPermessageDeflate ¶
func NewPermessageDeflate() *PermessageDeflate
func (*PermessageDeflate) Accept ¶
func (extension *PermessageDeflate) Accept(response map[string]string) bool
func (*PermessageDeflate) Compress ¶
func (extension *PermessageDeflate) Compress(payload []byte) ([]byte, error)
func (*PermessageDeflate) Decompress ¶
func (extension *PermessageDeflate) Decompress(payload []byte) ([]byte, error)
func (*PermessageDeflate) Name ¶
func (extension *PermessageDeflate) Name() string
func (*PermessageDeflate) Parameters ¶
func (extension *PermessageDeflate) Parameters() map[string]string
Click to show internal directories.
Click to hide internal directories.