1package qpack
2
3// A HeaderField is a name-value pair. Both the name and value are
4// treated as opaque sequences of octets.
5type HeaderField struct {
6	Name  string
7	Value string
8}
9
10// IsPseudo reports whether the header field is an HTTP3 pseudo header.
11// That is, it reports whether it starts with a colon.
12// It is not otherwise guaranteed to be a valid pseudo header field,
13// though.
14func (hf HeaderField) IsPseudo() bool {
15	return len(hf.Name) != 0 && hf.Name[0] == ':'
16}
17