Lines Matching defs:Keys
78 keys map[*http2ClientConn][]string
229 if p.keys == nil {
230 p.keys = make(map[*http2ClientConn][]string)
233 p.keys[cc] = append(p.keys[cc], key)
239 for _, key := range p.keys[cc] {
251 delete(p.keys, cc)
2746 // Keys returns the sorted keys of h.
2750 func (s *http2sorter) Keys(h Header) []string {
2751 keys := s.v[:0]
2753 keys = append(keys, k)
2755 s.v = keys
2757 return keys
4921 // TrailerPrefix is a magic prefix for ResponseWriter.Header map keys
5995 keys := make([]string, 0, len(req.Trailer))
6002 keys = append(keys, k)
6004 if len(keys) > 0 {
6005 sort.Strings(keys)
6007 return strings.Join(keys, ","), nil
7543 trailers []string // if non-nil, which keys of h to write. nil means all.
7685 // encodeHeaders encodes an http.Header. If keys is not nil, then (k, h[k])
7686 // is encoded only only if k is in keys.
7687 func http2encodeHeaders(enc *hpack.Encoder, h Header, keys []string) {
7688 if keys == nil {
7692 keys = sorter.Keys(h)
7694 for _, k := range keys {