net/http.ResponseWriter.Header (method)
39 uses
net/http (current package)
cookie.go#L253: w.Header().Add("Set-Cookie", v)
fs.go#L162: w.Header().Set("Content-Type", "text/html; charset=utf-8")
fs.go#L189: h := w.Header()
fs.go#L285: ctypes, haveType := w.Header()["Content-Type"]
fs.go#L300: w.Header().Set("Content-Type", ctype)
fs.go#L331: w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size))
fs.go#L365: w.Header().Set("Content-Range", ra.contentRange(size))
fs.go#L372: w.Header().Set("Content-Type", "multipart/byteranges; boundary="+mw.Boundary())
fs.go#L396: w.Header().Set("Accept-Ranges", "bytes")
fs.go#L423: if len(ranges) > 0 || w.Header().Get("Content-Encoding") == "" {
fs.go#L424: w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
fs.go#L504: if etagStrongMatch(etag, w.Header().get("Etag")) {
fs.go#L554: if etagWeakMatch(etag, w.Header().get("Etag")) {
fs.go#L593: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L623: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
fs.go#L633: h := w.Header()
fs.go#L789: w.Header().Set("Location", newPath)
server.go#L117: Header() Header
server.go#L2302: h := w.Header()
server.go#L2402: h := w.Header()
server.go#L2706: w.Header().Set("Allow", strings.Join(allowedMethods, ", "))
server.go#L2817: w.Header().Set("Connection", "close")
server.go#L3846: dst := w.Header()
server.go#L3946: 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.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. |