net/http.ResponseWriter.Header (method)
39 uses
net/http (current package)
cookie.go#L253: w.Header().Add("Set-Cookie", v)
fs.go#L163: w.Header().Set("Content-Type", "text/html; charset=utf-8")
fs.go#L190: h := w.Header()
fs.go#L286: ctypes, haveType := w.Header()["Content-Type"]
fs.go#L301: w.Header().Set("Content-Type", ctype)
fs.go#L332: w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size))
fs.go#L366: w.Header().Set("Content-Range", ra.contentRange(size))
fs.go#L373: w.Header().Set("Content-Type", "multipart/byteranges; boundary="+mw.Boundary())
fs.go#L397: w.Header().Set("Accept-Ranges", "bytes")
fs.go#L424: if len(ranges) > 0 || w.Header().Get("Content-Encoding") == "" {
fs.go#L425: w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
fs.go#L505: if etagStrongMatch(etag, w.Header().get("Etag")) {
fs.go#L555: if etagWeakMatch(etag, w.Header().get("Etag")) {
fs.go#L594: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L624: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
fs.go#L634: h := w.Header()
fs.go#L790: w.Header().Set("Location", newPath)
server.go#L117: Header() Header
server.go#L2322: h := w.Header()
server.go#L2422: h := w.Header()
server.go#L2726: w.Header().Set("Allow", strings.Join(allowedMethods, ", "))
server.go#L2837: w.Header().Set("Connection", "close")
server.go#L3866: dst := w.Header()
server.go#L3966: w.Header().Set("Content-Length", "0")
github.com/andybalholm/brotli
http.go#L20: if w.Header().Get("Vary") == "" {
http.go#L21: w.Header().Set("Vary", "Accept-Encoding")
http.go#L27: w.Header().Set("Content-Encoding", "br")
http.go#L30: w.Header().Set("Content-Encoding", "gzip")
github.com/coder/websocket
accept.go#L135: w.Header().Set("Upgrade", "websocket")
accept.go#L136: w.Header().Set("Connection", "Upgrade")
accept.go#L139: w.Header().Set("Sec-WebSocket-Accept", secWebSocketAccept(key))
accept.go#L143: w.Header().Set("Sec-WebSocket-Protocol", subproto)
accept.go#L148: w.Header().Set("Sec-WebSocket-Extensions", copts.String())
accept.go#L171: subprotocol: w.Header().Get("Sec-WebSocket-Protocol"),
accept.go#L190: w.Header().Set("Connection", "Upgrade")
accept.go#L191: w.Header().Set("Upgrade", "websocket")
accept.go#L196: w.Header().Set("Connection", "Upgrade")
accept.go#L197: w.Header().Set("Upgrade", "websocket")
accept.go#L206: w.Header().Set("Sec-WebSocket-Version", "13")
 |
The pages are generated with Golds v0.8.5. (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. |