net/http.Header.Set (method)
46 uses
net/http (current package)
client.go#L252: req.Header.Set("Authorization", "Basic "+basicAuth(username, password))
client.go#L688: req.Header.Set("Referer", ref)
client.go#L794: ireqhdr.Set("Cookie", strings.Join(ss, "; "))
client.go#L856: req.Header.Set("Content-Type", contentType)
fs.go#L153: w.Header().Set("Content-Type", "text/html; charset=utf-8")
fs.go#L249: w.Header().Set("Content-Type", ctype)
fs.go#L280: w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size))
fs.go#L314: w.Header().Set("Content-Range", ra.contentRange(size))
fs.go#L321: w.Header().Set("Content-Type", "multipart/byteranges; boundary="+mw.Boundary())
fs.go#L345: w.Header().Set("Accept-Ranges", "bytes")
fs.go#L347: w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
fs.go#L547: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
fs.go#L705: w.Header().Set("Location", newPath)
h2_bundle.go#L6041: rp.header.Set("Cookie", strings.Join(cookies, "; "))
header.go#L39: func (h Header) Set(key, value string) {
request.go#L445: r.Header.Set("Cookie", c+"; "+s)
request.go#L447: r.Header.Set("Cookie", s)
request.go#L988: r.Header.Set("Authorization", "Basic "+basicAuth(username, password))
server.go#L565: w.Header().Set("Connection", "close")
server.go#L2065: w.Header().Set("Connection", "close")
server.go#L2146: w.Header().Set("Content-Type", "text/plain; charset=utf-8")
server.go#L2147: w.Header().Set("X-Content-Type-Options", "nosniff")
server.go#L2238: h.Set("Location", hexEscapeNonASCII(url))
server.go#L2240: h.Set("Content-Type", "text/html; charset=utf-8")
server.go#L2508: w.Header().Set("Connection", "close")
server.go#L3508: w.Header().Set("Content-Length", "0")
transport.go#L1667: h.Set("Proxy-Authorization", pa)
transport.go#L1688: hdr.Set("Proxy-Authorization", pa)
transport.go#L2603: req.extraHeaders().Set("Accept-Encoding", "gzip")
transport.go#L2614: req.extraHeaders().Set("Connection", "close")
nhooyr.io/websocket
accept.go#L115: w.Header().Set("Upgrade", "websocket")
accept.go#L116: w.Header().Set("Connection", "Upgrade")
accept.go#L119: w.Header().Set("Sec-WebSocket-Accept", secWebSocketAccept(key))
accept.go#L123: w.Header().Set("Sec-WebSocket-Protocol", subproto)
accept.go#L128: w.Header().Set("Sec-WebSocket-Extensions", copts.String())
accept.go#L168: w.Header().Set("Connection", "Upgrade")
accept.go#L169: w.Header().Set("Upgrade", "websocket")
accept.go#L174: w.Header().Set("Connection", "Upgrade")
accept.go#L175: w.Header().Set("Upgrade", "websocket")
accept.go#L184: w.Header().Set("Sec-WebSocket-Version", "13")
dial.go#L195: req.Header.Set("Connection", "Upgrade")
dial.go#L196: req.Header.Set("Upgrade", "websocket")
dial.go#L197: req.Header.Set("Sec-WebSocket-Version", "13")
dial.go#L198: req.Header.Set("Sec-WebSocket-Key", secWebSocketKey)
dial.go#L200: req.Header.Set("Sec-WebSocket-Protocol", strings.Join(opts.Subprotocols, ","))
dial.go#L203: req.Header.Set("Sec-WebSocket-Extensions", copts.String())
|
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. |