net/http.Header.Get (method)
49 uses
net/http (current package)
client.go#L251: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L643: loc := resp.Header.Get("Location")
client.go#L696: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
client.go#L767: if c.Jar != nil && ireq.Header.Get("Cookie") != "" {
csrf.go#L141: switch req.Header.Get("Sec-Fetch-Site") {
csrf.go#L154: origin := req.Header.Get("Origin")
csrf.go#L195: 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#L6257: rp.Authority = header.Get("Host")
h2_bundle.go#L6661: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
h2_bundle.go#L6676: ce := rws.snapHeader.Get("Content-Encoding")
h2_bundle.go#L6697: v := rws.snapHeader.Get("Connection")
h2_bundle.go#L8738: if req.Method == "CONNECT" && req.Header.Get(":protocol") != "" {
h2_bundle.go#L9801: 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#L1453: ce := header.Get("Content-Encoding")
transport.go#L2433: if rc.addedGzip && ascii.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
transport.go#L2842: req.Header.Get("Accept-Encoding") == "" &&
transport.go#L2843: req.Header.Get("Range") == "" &&
github.com/andybalholm/brotli
http.go#L20: if w.Header().Get("Vary") == "" {
github.com/coder/websocket
accept.go#L138: key := r.Header.Get("Sec-WebSocket-Key")
accept.go#L171: subprotocol: w.Header().Get("Sec-WebSocket-Protocol"),
accept.go#L192: return http.StatusUpgradeRequired, fmt.Errorf("WebSocket protocol violation: Connection header %q does not contain Upgrade", r.Header.Get("Connection"))
accept.go#L198: return http.StatusUpgradeRequired, fmt.Errorf("WebSocket protocol violation: Upgrade header %q does not contain websocket", r.Header.Get("Upgrade"))
accept.go#L205: if r.Header.Get("Sec-WebSocket-Version") != "13" {
accept.go#L207: return http.StatusBadRequest, fmt.Errorf("unsupported WebSocket protocol version (only 13 is supported): %q", r.Header.Get("Sec-WebSocket-Version"))
accept.go#L229: origin := r.Header.Get("Origin")
dial.go#L176: subprotocol: resp.Header.Get("Sec-WebSocket-Protocol"),
dial.go#L248: return nil, fmt.Errorf("WebSocket protocol violation: Connection header %q does not contain Upgrade", resp.Header.Get("Connection"))
dial.go#L252: return nil, fmt.Errorf("WebSocket protocol violation: Upgrade header %q does not contain websocket", resp.Header.Get("Upgrade"))
dial.go#L255: if resp.Header.Get("Sec-WebSocket-Accept") != secWebSocketAccept(secWebSocketKey) {
dial.go#L257: resp.Header.Get("Sec-WebSocket-Accept"),
dial.go#L271: proto := resp.Header.Get("Sec-WebSocket-Protocol")
 |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |