vendor/golang.org/x/net/http2/hpack.HeaderField.Name (field)
133 uses
golang.org/x/net/http2
frame.go#L1413: if hf.Name[1:] == pseudo {
frame.go#L1446: switch hf.Name {
frame.go#L1452: return pseudoHeaderError(hf.Name)
frame.go#L1458: if hf.Name == hf2.Name {
frame.go#L1459: return duplicatePseudoHeaderError(hf.Name)
frame.go#L1503: isPseudo := strings.HasPrefix(hf.Name, ":")
frame.go#L1510: if !validWireHeaderFieldName(hf.Name) {
frame.go#L1511: invalid = headerFieldNameError(hf.Name)
server.go#L1918: key := sc.canonicalHeader(hf.Name)
server.go#L2028: rp.header.Add(sc.canonicalHeader(hf.Name), hf.Value)
transport.go#L1605: hf := hpack.HeaderField{Name: name, Value: value}
transport.go#L1657: hf := hpack.HeaderField{Name: k, Value: v}
transport.go#L1680: cc.henc.WriteField(hpack.HeaderField{Name: name, Value: value})
transport.go#L1982: key := http.CanonicalHeaderKey(hf.Name)
transport.go#L2085: key := http.CanonicalHeaderKey(hf.Name)
write.go#L195: enc.WriteField(hpack.HeaderField{Name: k, Value: v})
golang.org/x/net/http2/hpack
encode.go#L157: dst = appendHpackString(dst, f.Name)
hpack.go#L37: Name, Value string
hpack.go#L49: return len(hf.Name) != 0 && hf.Name[0] == ':'
hpack.go#L57: return fmt.Sprintf("header field %q = %q%s", hf.Name, hf.Value, suffix)
hpack.go#L74: return uint32(len(hf.Name) + len(hf.Value) + 32)
hpack.go#L349: return d.callEmit(HeaderField{Name: hf.Name, Value: hf.Value})
hpack.go#L367: hf.Name = ihf.Name
hpack.go#L369: hf.Name, buf, err = d.readString(buf, wantStr)
hpack.go#L388: if len(hf.Name) > d.maxStrLen || len(hf.Value) > d.maxStrLen {
tables.go#L58: t.byName[f.Name] = id
tables.go#L59: t.byNameValue[pairNameValue{f.Name, f.Value}] = id
tables.go#L71: if t.byName[f.Name] == id {
tables.go#L72: delete(t.byName, f.Name)
tables.go#L74: if p := (pairNameValue{f.Name, f.Value}); t.byNameValue[p] == id {
tables.go#L105: if id := t.byNameValue[pairNameValue{f.Name, f.Value}]; id != 0 {
tables.go#L109: if id := t.byName[f.Name]; id != 0 {
tables.go#L131: {Name: ":authority"},
tables.go#L132: {Name: ":method", Value: "GET"},
tables.go#L133: {Name: ":method", Value: "POST"},
tables.go#L134: {Name: ":path", Value: "/"},
tables.go#L135: {Name: ":path", Value: "/index.html"},
tables.go#L136: {Name: ":scheme", Value: "http"},
tables.go#L137: {Name: ":scheme", Value: "https"},
tables.go#L138: {Name: ":status", Value: "200"},
tables.go#L139: {Name: ":status", Value: "204"},
tables.go#L140: {Name: ":status", Value: "206"},
tables.go#L141: {Name: ":status", Value: "304"},
tables.go#L142: {Name: ":status", Value: "400"},
tables.go#L143: {Name: ":status", Value: "404"},
tables.go#L144: {Name: ":status", Value: "500"},
tables.go#L145: {Name: "accept-charset"},
tables.go#L146: {Name: "accept-encoding", Value: "gzip, deflate"},
tables.go#L147: {Name: "accept-language"},
tables.go#L148: {Name: "accept-ranges"},
tables.go#L149: {Name: "accept"},
tables.go#L150: {Name: "access-control-allow-origin"},
tables.go#L151: {Name: "age"},
tables.go#L152: {Name: "allow"},
tables.go#L153: {Name: "authorization"},
tables.go#L154: {Name: "cache-control"},
tables.go#L155: {Name: "content-disposition"},
tables.go#L156: {Name: "content-encoding"},
tables.go#L157: {Name: "content-language"},
tables.go#L158: {Name: "content-length"},
tables.go#L159: {Name: "content-location"},
tables.go#L160: {Name: "content-range"},
tables.go#L161: {Name: "content-type"},
tables.go#L162: {Name: "cookie"},
tables.go#L163: {Name: "date"},
tables.go#L164: {Name: "etag"},
tables.go#L165: {Name: "expect"},
tables.go#L166: {Name: "expires"},
tables.go#L167: {Name: "from"},
tables.go#L168: {Name: "host"},
tables.go#L169: {Name: "if-match"},
tables.go#L170: {Name: "if-modified-since"},
tables.go#L171: {Name: "if-none-match"},
tables.go#L172: {Name: "if-range"},
tables.go#L173: {Name: "if-unmodified-since"},
tables.go#L174: {Name: "last-modified"},
tables.go#L175: {Name: "link"},
tables.go#L176: {Name: "location"},
tables.go#L177: {Name: "max-forwards"},
tables.go#L178: {Name: "proxy-authenticate"},
tables.go#L179: {Name: "proxy-authorization"},
tables.go#L180: {Name: "range"},
tables.go#L181: {Name: "referer"},
tables.go#L182: {Name: "refresh"},
tables.go#L183: {Name: "retry-after"},
tables.go#L184: {Name: "server"},
tables.go#L185: {Name: "set-cookie"},
tables.go#L186: {Name: "strict-transport-security"},
tables.go#L187: {Name: "transfer-encoding"},
tables.go#L188: {Name: "user-agent"},
tables.go#L189: {Name: "vary"},
tables.go#L190: {Name: "via"},
tables.go#L191: {Name: "www-authenticate"},
google.golang.org/grpc/internal/transport
http2_client.go#L436: headerFields = append(headerFields, hpack.HeaderField{Name: ":method", Value: "POST"})
http2_client.go#L437: headerFields = append(headerFields, hpack.HeaderField{Name: ":scheme", Value: t.scheme})
http2_client.go#L438: headerFields = append(headerFields, hpack.HeaderField{Name: ":path", Value: callHdr.Method})
http2_client.go#L439: headerFields = append(headerFields, hpack.HeaderField{Name: ":authority", Value: callHdr.Host})
http2_client.go#L440: headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: grpcutil.ContentType(callHdr.ContentSubtype)})
http2_client.go#L441: headerFields = append(headerFields, hpack.HeaderField{Name: "user-agent", Value: t.userAgent})
http2_client.go#L442: headerFields = append(headerFields, hpack.HeaderField{Name: "te", Value: "trailers"})
http2_client.go#L444: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-previous-rpc-attempts", Value: strconv.Itoa(callHdr.PreviousAttempts)})
http2_client.go#L448: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: callHdr.SendCompress})
http2_client.go#L449: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-accept-encoding", Value: callHdr.SendCompress})
http2_client.go#L455: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-timeout", Value: grpcutil.EncodeDuration(timeout)})
http2_client.go#L458: headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)})
http2_client.go#L461: headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)})
http2_client.go#L464: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-tags-bin", Value: encodeBinHeader(b)})
http2_client.go#L467: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-trace-bin", Value: encodeBinHeader(b)})
http2_client.go#L478: headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)})
http2_client.go#L491: headerFields = append(headerFields, hpack.HeaderField{Name: strings.ToLower(k), Value: encodeMetadataHeader(k, v)})
http2_client.go#L501: headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)})
http2_server.go#L759: headerFields = append(headerFields, hpack.HeaderField{Name: k, Value: encodeMetadataHeader(k, v)})
http2_server.go#L811: headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"})
http2_server.go#L812: headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: grpcutil.ContentType(s.contentSubtype)})
http2_server.go#L814: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-encoding", Value: s.sendCompress})
http2_server.go#L861: headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"})
http2_server.go#L862: headerFields = append(headerFields, hpack.HeaderField{Name: "content-type", Value: grpcutil.ContentType(s.contentSubtype)})
http2_server.go#L865: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status", Value: strconv.Itoa(int(st.Code()))})
http2_server.go#L866: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-message", Value: encodeGrpcMessage(st.Message())})
http2_server.go#L874: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status-details-bin", Value: encodeBinHeader(stBytes)})
http_util.go#L304: switch f.Name {
http_util.go#L316: d.addMetadata(f.Name, f.Value)
http_util.go#L363: d.addMetadata(f.Name, string(v))
http_util.go#L371: d.addMetadata(f.Name, string(v))
http_util.go#L373: if isReservedHeader(f.Name) && !isWhitelistedHeader(f.Name) {
http_util.go#L376: v, err := decodeMetadataHeader(f.Name, f.Value)
http_util.go#L379: logger.Errorf("Failed to decode metadata header (%q, %q): %v", f.Name, f.Value, err)
http_util.go#L383: d.addMetadata(f.Name, v)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |