Versions in this module Expand all Collapse all v0 v0.20240905.1 Sep 5, 2024 v0.20240905.0 Sep 5, 2024 Changes in this version + var ErrInvalidHuffman = errors.New("hpack: invalid Huffman-encoded data") + var ErrStringLength = errors.New("hpack: string too long") + func AppendHuffmanString(dst []byte, s string) []byte + func HuffmanDecode(w io.Writer, v []byte) (int, error) + func HuffmanDecodeToString(v []byte) (string, error) + func HuffmanEncodeLength(s string) uint64 + type Decoder struct + func NewDecoder(maxDynamicTableSize uint32, emitFunc func(f HeaderField)) *Decoder + func (d *Decoder) Close() error + func (d *Decoder) DecodeFull(p []byte) ([]HeaderField, error) + func (d *Decoder) EmitEnabled() bool + func (d *Decoder) SetAllowedMaxDynamicTableSize(v uint32) + func (d *Decoder) SetEmitEnabled(v bool) + func (d *Decoder) SetEmitFunc(emitFunc func(f HeaderField)) + func (d *Decoder) SetMaxDynamicTableSize(v uint32) + func (d *Decoder) SetMaxStringLength(n int) + func (d *Decoder) Write(p []byte) (n int, err error) + type DecodingError struct + Err error + func (de DecodingError) Error() string + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) SetMaxDynamicTableSize(v uint32) + func (e *Encoder) SetMaxDynamicTableSizeLimit(v uint32) + func (e *Encoder) WriteField(f HeaderField) error + type HeaderField struct + Name string + Sensitive bool + Value string + func (hf HeaderField) IsPseudo() bool + func (hf HeaderField) Size() uint32 + func (hf HeaderField) String() string + type InvalidIndexError int + func (e InvalidIndexError) Error() string