net/http.Header.Get (method)
48 uses
net/http (current package)
client.go#L246: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L638: loc := resp.Header.Get("Location")
client.go#L691: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
client.go#L762: if c.Jar != nil && ireq.Header.Get("Cookie") != "" {
fs.go#L418: if len(ranges) > 0 || w.Header().Get("Content-Encoding") == "" {
fs.go#L479: im := r.Header.Get("If-Match")
fs.go#L509: ius := r.Header.Get("If-Unmodified-Since")
fs.go#L561: ims := r.Header.Get("If-Modified-Since")
fs.go#L588: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L632: if h.Get("Etag") != "" {
h2_bundle.go#L6327: rp.authority = rp.header.Get("Host")
h2_bundle.go#L6778: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
h2_bundle.go#L6793: ce := rws.snapHeader.Get("Content-Encoding")
h2_bundle.go#L6814: v := rws.snapHeader.Get("Connection")
h2_bundle.go#L8729: if v := req.Header.Get("Upgrade"); v != "" {
h2_bundle.go#L8788: req.Header.Get("Accept-Encoding") == "" &&
h2_bundle.go#L8789: req.Header.Get("Range") == "" &&
h2_bundle.go#L8925: if req.Method == "CONNECT" && req.Header.Get(":protocol") != "" {
h2_bundle.go#L9532: protocol := req.Header.Get(":protocol")
h2_bundle.go#L10187: if cs.requestedGzip && http2asciiEqualFold(res.Header.Get("Content-Encoding"), "gzip") {
header.go#L49: func (h Header) Get(key string) string {
request.go#L424: return r.Header.Get("User-Agent")
request.go#L466: if c := r.Header.Get("Cookie"); c != "" {
request.go#L482: return r.Header.Get("Referer")
request.go#L509: v := r.Header.Get("Content-Type")
request.go#L691: userAgent = r.Header.Get("User-Agent")
request.go#L974: auth := r.Header.Get("Authorization")
request.go#L1268: ct := r.Header.Get("Content-Type")
request.go#L1580: return hasToken(r.Header.Get("Connection"), "upgrade") &&
request.go#L1581: ascii.EqualFold(r.Header.Get("Upgrade"), "websocket")
response.go#L138: lv := r.Header.Get("Location")
response.go#L369: return h.Get("Upgrade") != "" &&
server.go#L1497: ce := header.Get("Content-Encoding")
transport.go#L2378: if rc.addedGzip && ascii.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
transport.go#L2757: req.Header.Get("Accept-Encoding") == "" &&
transport.go#L2758: req.Header.Get("Range") == "" &&
net/http/httputil
reverseproxy.go#L597: resCT := res.Header.Get("Content-Type")
reverseproxy.go#L734: return h.Get("Upgrade")
go.uber.org/zap
http_handler.go#L85: requestedLvl, err := decodePutRequest(r.Header.Get("Content-Type"), r)
golang.org/x/net/http2
server.go#L2277: rp.Authority = header.Get("Host")
server.go#L2682: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
server.go#L2697: ce := rws.snapHeader.Get("Content-Encoding")
server.go#L2718: v := rws.snapHeader.Get("Connection")
transport.go#L1451: if req.Method == "CONNECT" && req.Header.Get(":protocol") != "" {
transport.go#L2509: if cs.requestedGzip && asciiEqualFold(res.Header.Get("Content-Encoding"), "gzip") {
google.golang.org/grpc/internal/transport
handler_server.go#L60: contentType := r.Header.Get("Content-Type")
handler_server.go#L105: if v := r.Header.Get("grpc-timeout"); v != "" {
handler_server.go#L418: recvCompress: req.Header.Get("grpc-encoding"),