net/http.Header.Get (method)
48 uses
net/http (current package)
client.go#L247: if u := req.URL.User; u != nil && req.Header.Get("Authorization") == "" {
client.go#L639: loc := resp.Header.Get("Location")
client.go#L687: if ref := refererForURL(reqs[len(reqs)-1].URL, req.URL, req.Header.Get("Referer")); ref != "" {
client.go#L756: if c.Jar != nil && ireq.Header.Get("Cookie") != "" {
fs.go#L346: if w.Header().Get("Content-Encoding") == "" {
fs.go#L408: im := r.Header.Get("If-Match")
fs.go#L438: ius := r.Header.Get("If-Unmodified-Since")
fs.go#L490: ims := r.Header.Get("If-Modified-Since")
fs.go#L517: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L561: if h.Get("Etag") != "" {
h2_bundle.go#L5996: rp.authority = rp.header.Get("Host")
h2_bundle.go#L6443: if clen = rws.snapHeader.Get("Content-Length"); clen != "" {
h2_bundle.go#L6458: ce := rws.snapHeader.Get("Content-Encoding")
h2_bundle.go#L6479: v := rws.snapHeader.Get("Connection")
h2_bundle.go#L8265: if v := req.Header.Get("Upgrade"); v != "" {
h2_bundle.go#L8462: req.Header.Get("Accept-Encoding") == "" &&
h2_bundle.go#L8463: req.Header.Get("Range") == "" &&
h2_bundle.go#L9571: if cs.requestedGzip && http2asciiEqualFold(res.Header.Get("Content-Encoding"), "gzip") {
header.go#L49: func (h Header) Get(key string) string {
request.go#L411: return r.Header.Get("User-Agent")
request.go#L444: if c := r.Header.Get("Cookie"); c != "" {
request.go#L460: return r.Header.Get("Referer")
request.go#L487: v := r.Header.Get("Content-Type")
request.go#L669: userAgent = r.Header.Get("User-Agent")
request.go#L949: auth := r.Header.Get("Authorization")
request.go#L1222: ct := r.Header.Get("Content-Type")
request.go#L1486: return hasToken(r.Header.Get("Connection"), "upgrade") &&
request.go#L1487: ascii.EqualFold(r.Header.Get("Upgrade"), "websocket")
response.go#L138: lv := r.Header.Get("Location")
response.go#L369: return h.Get("Upgrade") != "" &&
server.go#L1438: ce := header.Get("Content-Encoding")
transport.go#L2221: if rc.addedGzip && ascii.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
transport.go#L2587: req.Header.Get("Accept-Encoding") == "" &&
transport.go#L2588: req.Header.Get("Range") == "" &&
go.uber.org/zap
http_handler.go#L93: requestedLvl, err := decodePutRequest(r.Header.Get("Content-Type"), r)
nhooyr.io/websocket
accept.go#L118: key := r.Header.Get("Sec-WebSocket-Key")
accept.go#L151: subprotocol: w.Header().Get("Sec-WebSocket-Protocol"),
accept.go#L170: return http.StatusUpgradeRequired, fmt.Errorf("WebSocket protocol violation: Connection header %q does not contain Upgrade", r.Header.Get("Connection"))
accept.go#L176: return http.StatusUpgradeRequired, fmt.Errorf("WebSocket protocol violation: Upgrade header %q does not contain websocket", r.Header.Get("Upgrade"))
accept.go#L183: if r.Header.Get("Sec-WebSocket-Version") != "13" {
accept.go#L185: return http.StatusBadRequest, fmt.Errorf("unsupported WebSocket protocol version (only 13 is supported): %q", r.Header.Get("Sec-WebSocket-Version"))
accept.go#L207: origin := r.Header.Get("Origin")
dial.go#L161: subprotocol: resp.Header.Get("Sec-WebSocket-Protocol"),
dial.go#L231: return nil, fmt.Errorf("WebSocket protocol violation: Connection header %q does not contain Upgrade", resp.Header.Get("Connection"))
dial.go#L235: return nil, fmt.Errorf("WebSocket protocol violation: Upgrade header %q does not contain websocket", resp.Header.Get("Upgrade"))
dial.go#L238: if resp.Header.Get("Sec-WebSocket-Accept") != secWebSocketAccept(secWebSocketKey) {
dial.go#L240: resp.Header.Get("Sec-WebSocket-Accept"),
dial.go#L254: proto := resp.Header.Get("Sec-WebSocket-Protocol")
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |