net/http.Header.Get (method)
108 uses
net/http (current package)
client.go#L238: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L518: if resp.Header.Get("Location") == "" {
client.go#L634: loc := resp.Header.Get("Location")
client.go#L750: if c.Jar != nil && ireq.Header.Get("Cookie") != "" {
fs.go#L329: if w.Header().Get("Content-Encoding") == "" {
fs.go#L392: im := r.Header.Get("If-Match")
fs.go#L422: ius := r.Header.Get("If-Unmodified-Since")
fs.go#L474: ims := r.Header.Get("If-Modified-Since")
fs.go#L501: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L544: if h.Get("Etag") != "" {
h2_bundle.go#L5586: rp.authority = rp.header.Get("Host")
h2_bundle.go#L5624: needsContinue := rp.header.Get("Expect") == "100-continue"
h2_bundle.go#L5980: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
h2_bundle.go#L5994: ce := rws.snapHeader.Get("Content-Encoding")
h2_bundle.go#L6015: v := rws.snapHeader.Get("Connection")
h2_bundle.go#L7505: if v := req.Header.Get("Upgrade"); v != "" {
h2_bundle.go#L7562: req.Header.Get("Accept-Encoding") == "" &&
h2_bundle.go#L7563: req.Header.Get("Range") == "" &&
h2_bundle.go#L8559: if cs.requestedGzip && res.Header.Get("Content-Encoding") == "gzip" {
header.go#L45: func (h Header) Get(key string) string {
request.go#L405: return r.Header.Get("User-Agent")
request.go#L435: if c := r.Header.Get("Cookie"); c != "" {
request.go#L451: return r.Header.Get("Referer")
request.go#L478: v := r.Header.Get("Content-Type")
request.go#L628: userAgent = r.Header.Get("User-Agent")
request.go#L938: auth := r.Header.Get("Authorization")
request.go#L1192: ct := r.Header.Get("Content-Type")
request.go#L1454: return hasToken(r.Header.Get("Connection"), "upgrade") &&
request.go#L1455: strings.EqualFold(r.Header.Get("Upgrade"), "websocket")
response.go#L138: lv := r.Header.Get("Location")
response.go#L370: return h.Get("Upgrade") != "" &&
server.go#L1406: ce := header.Get("Content-Encoding")
transport.go#L2186: if rc.addedGzip && strings.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
transport.go#L2545: req.Header.Get("Accept-Encoding") == "" &&
transport.go#L2546: req.Header.Get("Range") == "" &&
net/http/httptest
recorder.go#L94: hasTE := m.Get("Transfer-Encoding") != ""
recorder.go#L186: res.ContentLength = parseContentLength(res.Header.Get("Content-Length"))
net/http/httputil
reverseproxy.go#L251: hv := outreq.Header.Get(h)
reverseproxy.go#L401: resCT := res.Header.Get("Content-Type")
reverseproxy.go#L541: return strings.ToLower(h.Get("Upgrade"))
cloud.google.com/go/compute/metadata
metadata.go#L139: resc <- res.Header.Get("Metadata-Flavor") == "Google"
metadata.go#L322: return string(all), res.Header.Get("Etag"), nil
cloud.google.com/go/logging
logging.go#L879: traceHeader := e.HTTPRequest.Request.Header.Get("X-Cloud-Trace-Context")
cloud.google.com/go/storage
reader.go#L189: if gen < 0 && res.Header.Get("X-Goog-Generation") != "" {
reader.go#L190: gen64, err := strconv.ParseInt(res.Header.Get("X-Goog-Generation"), 10, 64)
reader.go#L215: cr := strings.TrimSpace(res.Header.Get("Content-Range"))
reader.go#L255: if res.Header.Get("X-Goog-Metageneration") != "" {
reader.go#L256: metaGen, err = strconv.ParseInt(res.Header.Get("X-Goog-Metageneration"), 10, 64)
reader.go#L263: if res.Header.Get("Last-Modified") != "" {
reader.go#L264: lm, err = http.ParseTime(res.Header.Get("Last-Modified"))
reader.go#L272: ContentType: res.Header.Get("Content-Type"),
reader.go#L273: ContentEncoding: res.Header.Get("Content-Encoding"),
reader.go#L274: CacheControl: res.Header.Get("Cache-Control"),
reader.go#L299: return res.Header.Get("Content-Encoding") == "gzip" ||
reader.go#L300: res.Header.Get("X-Goog-Stored-Content-Encoding") == "gzip"
reader.go#L306: return res.Header.Get("X-Goog-Stored-Content-Encoding") == "gzip" &&
reader.go#L307: res.Header.Get("Content-Encoding") != "gzip"
github.com/aws/aws-sdk-go/aws/client
default_retryer.go#L153: delayStr := r.HTTPResponse.Header.Get("Retry-After")
github.com/aws/aws-sdk-go/aws/corehandlers
handlers.go#L34: if slength := r.HTTPRequest.Header.Get("Content-Length"); slength != "" {
github.com/aws/aws-sdk-go/aws/csm
reporter.go#L62: UserAgent: aws.String(r.HTTPRequest.Header.Get("User-Agent")),
reporter.go#L116: UserAgent: aws.String(r.HTTPRequest.Header.Get("User-Agent")),
github.com/aws/aws-sdk-go/aws/ec2metadata
service.go#L188: v := r.HTTPResponse.Header.Get(ttlHeader)
github.com/aws/aws-sdk-go/aws/request
request.go#L177: *val = req.HTTPResponse.Header.Get(key)
request.go#L620: curUA := r.HTTPRequest.Header.Get("User-Agent")
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L556: if auth := r.Header.Get(authorizationHeader); len(auth) != 0 {
v4.go#L688: hash := ctx.Request.Header.Get("X-Amz-Content-Sha256")
v4.go#L726: if ctx.Request.Header.Get("Authorization") != "" {
github.com/aws/aws-sdk-go/private/protocol/query
unmarshal.go#L38: r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid")
github.com/aws/aws-sdk-go/private/protocol/rest
unmarshal.go#L40: r.RequestID = r.HTTPResponse.Header.Get("X-Amzn-Requestid")
unmarshal.go#L43: r.RequestID = r.HTTPResponse.Header.Get("X-Amz-Request-Id")
unmarshal.go#L134: err := unmarshalHeader(m, resp.Header.Get(name), field.Tag)
github.com/evanw/esbuild/pkg/api
serve_other.go#L242: if begin, end, ok := parseRangeHeader(req.Header.Get("Range"), len(fileContents)); ok && begin < end {
github.com/prometheus/client_golang/prometheus/promhttp
http.go#L325: a := header.Get(acceptEncodingHeader)
github.com/prometheus/common/expfmt
decode.go#L43: ct := h.Get(hdrContentType)
encode.go#L42: for _, ac := range goautoneg.ParseAccept(h.Get(hdrAccept)) {
go.opencensus.io/plugin/ochttp/propagation/b3
b3.go#L49: tid, ok := ParseTraceID(req.Header.Get(TraceIDHeader))
b3.go#L53: sid, ok := ParseSpanID(req.Header.Get(SpanIDHeader))
b3.go#L57: sampled, _ := ParseSampled(req.Header.Get(SampledHeader))
golang.org/x/net/http2
server.go#L2031: rp.authority = rp.header.Get("Host")
server.go#L2069: needsContinue := rp.header.Get("Expect") == "100-continue"
server.go#L2425: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
server.go#L2439: ce := rws.snapHeader.Get("Content-Encoding")
server.go#L2460: v := rws.snapHeader.Get("Connection")
transport.go#L1002: if v := req.Header.Get("Upgrade"); v != "" {
transport.go#L1059: req.Header.Get("Accept-Encoding") == "" &&
transport.go#L1060: req.Header.Get("Range") == "" &&
transport.go#L2056: if cs.requestedGzip && res.Header.Get("Content-Encoding") == "gzip" {
golang.org/x/oauth2/internal
token.go#L249: content, _, _ := mime.ParseMediaType(r.Header.Get("Content-Type"))
golang.org/x/pkgsite/internal/auth
auth.go#L54: return req.Header.Get("Authorization"), nil
golang.org/x/pkgsite/internal/frontend
server.go#L190: userAgent := r.Header.Get("User-Agent")
golang.org/x/pkgsite/internal/middleware
caching.go#L129: authVal := r.Header.Get(config.BypassCacheAuthHeader)
errorreporting.go#L60: if rw.ResponseWriter.Header().Get(config.BypassErrorReportingHeader) == "true" {
experiment.go#L121: ip := ipKey(r.Header.Get("X-Forwarded-For"))
iapheader.go#L25: token := r.Header.Get("X-Goog-IAP-JWT-Assertion")
quota.go#L80: authVal := r.Header.Get(config.BypassQuotaAuthHeader)
quota.go#L89: header := r.Header.Get("X-Godoc-Forwarded-For")
quota.go#L91: header = r.Header.Get("X-Forwarded-For")
requestlog.go#L61: traceID := r.Header.Get("X-Cloud-Trace-Context")
requestlog.go#L91: "isRobot": isRobot(r.Header.Get("User-Agent")),
golang.org/x/pkgsite/internal/proxy
server.go#L45: if uncached && r.Header.Get(disableFetchHeader) == "true" {
google.golang.org/api/idtoken
cache.go#L100: cc := strings.Split(headers.Get("cache-control"), ",")
cache.go#L114: age, err := strconv.Atoi(headers.Get("age"))
google.golang.org/api/internal/gensupport
resumable.go#L109: return resp != nil && resp.Header.Get("X-Http-Status-Code-Override") == "308"
google.golang.org/api/storage/v1
storage-gen.go#L10136: rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
google.golang.org/api/transport/http/internal/propagation
http.go#L36: h := req.Header.Get(httpHeader)
google.golang.org/grpc/internal/transport
handler_server.go#L59: contentType := r.Header.Get("Content-Type")
handler_server.go#L79: if v := r.Header.Get("grpc-timeout"); v != "" {
handler_server.go#L362: recvCompress: req.Header.Get("grpc-encoding"),
 |
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. |