net/http.Header.Set (method)

50 uses

	net/http (current package)
		client.go#L256: 		req.Header.Set("Authorization", "Basic "+basicAuth(username, password))
		client.go#L697: 				req.Header.Set("Referer", ref)
		client.go#L804: 				ireqhdr.Set("Cookie", strings.Join(ss, "; "))
		client.go#L879: 	req.Header.Set("Content-Type", contentType)
		fs.go#L162: 	w.Header().Set("Content-Type", "text/html; charset=utf-8")
		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#L424: 		w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
		fs.go#L623: 		w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
		fs.go#L789: 	w.Header().Set("Location", newPath)
		h2_bundle.go#L6260: 		header.Set(":protocol", rp.Protocol)
		header.go#L39: func (h Header) Set(key, value string) {
		request.go#L467: 		r.Header.Set("Cookie", c+"; "+s)
		request.go#L469: 		r.Header.Set("Cookie", s)
		request.go#L1023: 	r.Header.Set("Authorization", "Basic "+basicAuth(username, password))
		server.go#L568: 		w.Header().Set("Connection", "close")
		server.go#L2194: 	w.Header().Set("Connection", "close")
		server.go#L2315: 	h.Set("Content-Type", "text/plain; charset=utf-8")
		server.go#L2316: 	h.Set("X-Content-Type-Options", "nosniff")
		server.go#L2409: 	h.Set("Location", hexEscapeNonASCII(url))
		server.go#L2411: 		h.Set("Content-Type", "text/html; charset=utf-8")
		server.go#L2706: 				w.Header().Set("Allow", strings.Join(allowedMethods, ", "))
		server.go#L2817: 			w.Header().Set("Connection", "close")
		server.go#L3946: 	w.Header().Set("Content-Length", "0")
		transport.go#L1857: 				h.Set("Proxy-Authorization", pa)
		transport.go#L1878: 			hdr.Set("Proxy-Authorization", pa)
		transport.go#L2858: 		req.extraHeaders().Set("Accept-Encoding", "gzip")
		transport.go#L2869: 		req.extraHeaders().Set("Connection", "close")

	github.com/andybalholm/brotli
		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#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")
		dial.go#L212: 	req.Header.Set("Connection", "Upgrade")
		dial.go#L213: 	req.Header.Set("Upgrade", "websocket")
		dial.go#L214: 	req.Header.Set("Sec-WebSocket-Version", "13")
		dial.go#L215: 	req.Header.Set("Sec-WebSocket-Key", secWebSocketKey)
		dial.go#L217: 		req.Header.Set("Sec-WebSocket-Protocol", strings.Join(opts.Subprotocols, ","))
		dial.go#L220: 		req.Header.Set("Sec-WebSocket-Extensions", copts.String())