package qpack
Import Path
github.com/quic-go/qpack (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Package-Level Type Names (total 3)
A Decoder is the decoding context for incremental processing of
header blocks.
Close declares that the decoding is complete and resets the Decoder
to be reused again for a new header block. If there is any remaining
data in the decoder's buffer, Close returns an error.
DecodeFull decodes an entire block.
(*Decoder) Write(p []byte) (int, error)
*Decoder : github.com/miekg/dns.Writer
*Decoder : github.com/prometheus/common/expfmt.Closer
*Decoder : internal/bisect.Writer
*Decoder : io.Closer
*Decoder : io.WriteCloser
*Decoder : io.Writer
func NewDecoder(emitFunc func(f HeaderField)) *Decoder
An Encoder performs QPACK encoding.
Close declares that the encoding is complete and resets the Encoder
to be reused again for a new header block.
WriteField encodes f into a single Write to e's underlying Writer.
This function may also produce bytes for the Header Block Prefix
if necessary. If produced, it is done before encoding f.
*Encoder : github.com/prometheus/common/expfmt.Closer
*Encoder : io.Closer
func NewEncoder(w io.Writer) *Encoder
A HeaderField is a name-value pair. Both the name and value are
treated as opaque sequences of octets.
Name string
Value string
IsPseudo reports whether the header field is an HTTP3 pseudo header.
That is, it reports whether it starts with a colon.
It is not otherwise guaranteed to be a valid pseudo header field,
though.
func (*Decoder).DecodeFull(p []byte) ([]HeaderField, error)
func (*Encoder).WriteField(f HeaderField) error
Package-Level Functions (total 2)
NewDecoder returns a new decoder
The emitFunc will be called for each valid field parsed,
in the same goroutine as calls to Write, before Write returns.
NewEncoder returns a new Encoder which performs QPACK encoding. An
encoded data is written to w.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |