net/http.ResponseWriter.Header (method)
34 uses
net/http (current package)
cookie.go#L171: w.Header().Add("Set-Cookie", v)
fs.go#L153: w.Header().Set("Content-Type", "text/html; charset=utf-8")
fs.go#L234: ctypes, haveType := w.Header()["Content-Type"]
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#L346: if w.Header().Get("Content-Encoding") == "" {
fs.go#L347: w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
fs.go#L428: if etagStrongMatch(etag, w.Header().get("Etag")) {
fs.go#L478: if etagWeakMatch(etag, w.Header().get("Etag")) {
fs.go#L517: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L547: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
fs.go#L557: h := w.Header()
fs.go#L705: w.Header().Set("Location", newPath)
server.go#L116: Header() Header
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#L2231: h := w.Header()
server.go#L2508: w.Header().Set("Connection", "close")
server.go#L3406: dst := w.Header()
server.go#L3508: w.Header().Set("Content-Length", "0")
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#L151: subprotocol: w.Header().Get("Sec-WebSocket-Protocol"),
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")
|
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. |