net/http.Header.Get (method)
47 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#L692: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
client.go#L763: if c.Jar != nil && ireq.Header.Get("Cookie") != "" {
csrf.go#L137: switch req.Header.Get("Sec-Fetch-Site") {
csrf.go#L150: origin := req.Header.Get("Origin")
csrf.go#L191: origin := req.Header.Get("Origin")
fs.go#L423: if len(ranges) > 0 || w.Header().Get("Content-Encoding") == "" {
fs.go#L484: im := r.Header.Get("If-Match")
fs.go#L514: ius := r.Header.Get("If-Unmodified-Since")
fs.go#L566: ims := r.Header.Get("If-Modified-Since")
fs.go#L593: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L637: if h.Get("Etag") != "" {
h2_bundle.go#L6230: rp.Authority = header.Get("Host")
h2_bundle.go#L6635: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
h2_bundle.go#L6650: ce := rws.snapHeader.Get("Content-Encoding")
h2_bundle.go#L6671: v := rws.snapHeader.Get("Connection")
h2_bundle.go#L8731: if req.Method == "CONNECT" && req.Header.Get(":protocol") != "" {
h2_bundle.go#L9790: 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#L1489: ce := header.Get("Content-Encoding")
transport.go#L2381: if rc.addedGzip && ascii.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
transport.go#L2767: req.Header.Get("Accept-Encoding") == "" &&
transport.go#L2768: req.Header.Get("Range") == "" &&
net/http/httputil
reverseproxy.go#L610: resCT := res.Header.Get("Content-Type")
reverseproxy.go#L747: return h.Get("Upgrade")
go.uber.org/zap
http_handler.go#L93: requestedLvl, err := decodePutRequest(r.Header.Get("Content-Type"), r)
golang.org/x/net/http2
server.go#L2260: rp.Authority = header.Get("Host")
server.go#L2664: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
server.go#L2679: ce := rws.snapHeader.Get("Content-Encoding")
server.go#L2700: v := rws.snapHeader.Get("Connection")
transport.go#L1399: if req.Method == "CONNECT" && req.Header.Get(":protocol") != "" {
transport.go#L2456: 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#L420: recvCompress: req.Header.Get("grpc-encoding"),