Update quic-go dependency to support go 1.20 (#2292)

This commit is contained in:
Deltadroid 2023-02-02 12:42:11 +01:00 committed by GitHub
parent 5438eed2f4
commit c3fd855831
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
296 changed files with 14851 additions and 2397 deletions

16
vendor/github.com/quic-go/qpack/header_field.go generated vendored Normal file
View file

@ -0,0 +1,16 @@
package qpack
// A HeaderField is a name-value pair. Both the name and value are
// treated as opaque sequences of octets.
type HeaderField struct {
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 (hf HeaderField) IsPseudo() bool {
return len(hf.Name) != 0 && hf.Name[0] == ':'
}