net/http.ResponseWriter.Header (method)
24 uses
net/http (current package)
cookie.go#L219: w.Header().Add("Set-Cookie", v)
fs.go#L157: w.Header().Set("Content-Type", "text/html; charset=utf-8")
fs.go#L184: h := w.Header()
fs.go#L280: ctypes, haveType := w.Header()["Content-Type"]
fs.go#L295: w.Header().Set("Content-Type", ctype)
fs.go#L326: w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size))
fs.go#L360: w.Header().Set("Content-Range", ra.contentRange(size))
fs.go#L367: w.Header().Set("Content-Type", "multipart/byteranges; boundary="+mw.Boundary())
fs.go#L391: w.Header().Set("Accept-Ranges", "bytes")
fs.go#L418: if len(ranges) > 0 || w.Header().Get("Content-Encoding") == "" {
fs.go#L419: w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
fs.go#L499: if etagStrongMatch(etag, w.Header().get("Etag")) {
fs.go#L549: if etagWeakMatch(etag, w.Header().get("Etag")) {
fs.go#L588: if etagStrongMatch(etag, w.Header().Get("Etag")) {
fs.go#L618: w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
fs.go#L628: h := w.Header()
fs.go#L781: w.Header().Set("Location", newPath)
server.go#L117: Header() Header
server.go#L2236: h := w.Header()
server.go#L2334: h := w.Header()
server.go#L2632: w.Header().Set("Allow", strings.Join(allowedMethods, ", "))
server.go#L2736: w.Header().Set("Connection", "close")
server.go#L3679: dst := w.Header()
server.go#L3781: w.Header().Set("Content-Length", "0")
 |
The pages are generated with Golds v0.7.6. (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. |