net/http.Header.Set (method)

82 uses

	net/http (current package)
		client.go#L244: 		req.Header.Set("Authorization", "Basic "+basicAuth(username, password))
		client.go#L689: 				req.Header.Set("Referer", ref)
		client.go#L795: 				ireqhdr.Set("Cookie", strings.Join(ss, "; "))
		client.go#L857: 	req.Header.Set("Content-Type", contentType)
		fs.go#L151: 	w.Header().Set("Content-Type", "text/html; charset=utf-8")
		fs.go#L247: 		w.Header().Set("Content-Type", ctype)
		fs.go#L265: 				w.Header().Set("Content-Range", fmt.Sprintf("bytes */%d", size))
		fs.go#L297: 			w.Header().Set("Content-Range", ra.contentRange(size))
		fs.go#L304: 			w.Header().Set("Content-Type", "multipart/byteranges; boundary="+mw.Boundary())
		fs.go#L328: 		w.Header().Set("Accept-Ranges", "bytes")
		fs.go#L330: 			w.Header().Set("Content-Length", strconv.FormatInt(sendSize, 10))
		fs.go#L531: 		w.Header().Set("Last-Modified", modtime.UTC().Format(TimeFormat))
		fs.go#L689: 	w.Header().Set("Location", newPath)
		h2_bundle.go#L5810: 		rp.header.Set("Cookie", strings.Join(cookies, "; "))
		header.go#L39: func (h Header) Set(key, value string) {
		request.go#L437: 		r.Header.Set("Cookie", c+"; "+s)
		request.go#L439: 		r.Header.Set("Cookie", s)
		request.go#L978: 	r.Header.Set("Authorization", "Basic "+basicAuth(username, password))
		server.go#L548: 		w.Header().Set("Connection", "close")
		server.go#L2013: 	w.Header().Set("Connection", "close")
		server.go#L2094: 	w.Header().Set("Content-Type", "text/plain; charset=utf-8")
		server.go#L2095: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		server.go#L2186: 	h.Set("Location", hexEscapeNonASCII(url))
		server.go#L2188: 		h.Set("Content-Type", "text/html; charset=utf-8")
		server.go#L2456: 			w.Header().Set("Connection", "close")
		server.go#L3485: 	w.Header().Set("Content-Length", "0")
		transport.go#L1649: 				h.Set("Proxy-Authorization", pa)
		transport.go#L1670: 			hdr.Set("Proxy-Authorization", pa)
		transport.go#L2571: 		req.extraHeaders().Set("Accept-Encoding", "gzip")
		transport.go#L2582: 		req.extraHeaders().Set("Connection", "close")

	net/http/httptest
		recorder.go#L99: 		m.Set("Content-Type", http.DetectContentType(b))

	net/http/httputil
		reverseproxy.go#L157: 			req.Header.Set("User-Agent", "")
		reverseproxy.go#L275: 		outreq.Header.Set("Te", "trailers")
		reverseproxy.go#L281: 		outreq.Header.Set("Connection", "Upgrade")
		reverseproxy.go#L282: 		outreq.Header.Set("Upgrade", reqUpType)
		reverseproxy.go#L295: 			outreq.Header.Set("X-Forwarded-For", clientIP)

	net/http/pprof
		pprof.go#L92: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		pprof.go#L93: 	w.Header().Set("Content-Type", "text/plain; charset=utf-8")
		pprof.go#L110: 	w.Header().Set("Content-Type", "text/plain; charset=utf-8")
		pprof.go#L111: 	w.Header().Set("X-Go-Pprof", "1")
		pprof.go#L121: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		pprof.go#L134: 	w.Header().Set("Content-Type", "application/octet-stream")
		pprof.go#L135: 	w.Header().Set("Content-Disposition", `attachment; filename="profile"`)
		pprof.go#L150: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		pprof.go#L163: 	w.Header().Set("Content-Type", "application/octet-stream")
		pprof.go#L164: 	w.Header().Set("Content-Disposition", `attachment; filename="trace"`)
		pprof.go#L179: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		pprof.go#L180: 	w.Header().Set("Content-Type", "text/plain; charset=utf-8")
		pprof.go#L232: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		pprof.go#L248: 		w.Header().Set("Content-Type", "text/plain; charset=utf-8")
		pprof.go#L250: 		w.Header().Set("Content-Type", "application/octet-stream")
		pprof.go#L251: 		w.Header().Set("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, name))
		pprof.go#L316: 	w.Header().Set("Content-Type", "application/octet-stream")
		pprof.go#L317: 	w.Header().Set("Content-Disposition", fmt.Sprintf(`attachment; filename="%s-delta"`, name))
		pprof.go#L376: 	w.Header().Set("X-Content-Type-Options", "nosniff")
		pprof.go#L377: 	w.Header().Set("Content-Type", "text/html; charset=utf-8")

	expvar
		expvar.go#L333: 	w.Header().Set("Content-Type", "application/json; charset=utf-8")

	github.com/aws/aws-sdk-go-v2/aws/signer/v4
		middleware.go#L247: 	req.Header.Set(v4Internal.ContentSHAKey, GetPayloadHash(ctx))

	github.com/aws/aws-sdk-go-v2/aws/transport/http
		client.go#L305: 			resp.Header.Set("Location", badHTTPRedirectLocation)

	github.com/aws/aws-sdk-go-v2/internal/v4a
		v4a.go#L263: 	headers.Set(AmzRegionSetKey, strings.Join(s.RegionSet, ","))
		v4a.go#L264: 	headers.Set(amzDateKey, amzDate)
		v4a.go#L266: 		headers.Set(amzSecurityTokenKey, s.Credentials.SessionToken)

	github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding
		accept_encoding_gzip.go#L65: 	req.Header.Set(acceptEncodingHeaderKey, "identity")
		accept_encoding_gzip.go#L95: 	req.Header.Set(acceptEncodingHeaderKey, "gzip")

	github.com/aws/aws-sdk-go-v2/service/internal/checksum
		middleware_compute_input_checksum.go#L222: 	req.Header.Set(checksumHeader, checksum)
		middleware_compute_input_checksum.go#L357: 		req.Header.Set(decodedContentLengthHeaderName, strconv.FormatInt(streamLength, 10))
		middleware_compute_input_checksum.go#L477: 	req.Header.Set(contentMD5Header, string(v))

	github.com/aws/smithy-go/auth/bearer
		middleware.go#L101: 	reqClone.Header.Set("Authorization", "Bearer "+token.Value)

	github.com/aws/smithy-go/transport/http
		checksum_middleware.go#L65: 		req.Header.Set(contentMD5Header, string(v))
		middleware_headers.go#L117: 			req.Header.Set(value.header, value.value)

	go.pact.im/x/httpdebug
		httpdebug.go#L44: 		h.Set("Content-Type", "text/plain; charset=utf-8")
		httpdebug.go#L45: 		h.Set("Content-Length", strconv.Itoa(len(modinfo)))
		httpdebug.go#L52: 		h.Set("Content-Type", "text/html; charset=utf-8")
		httpdebug.go#L53: 		h.Set("Content-Length", strconv.Itoa(len(debugPage)))

	golang.org/x/net/http2
		server.go#L2213: 		rp.header.Set("Cookie", strings.Join(cookies, "; "))

	golang.org/x/net/trace
		trace.go#L157: 	w.Header().Set("Content-Type", "text/html; charset=utf-8")
		trace.go#L172: 	w.Header().Set("Content-Type", "text/html; charset=utf-8")

	google.golang.org/grpc/internal/transport
		handler_server.go#L215: 		h.Set("Grpc-Status", fmt.Sprintf("%d", st.Code()))
		handler_server.go#L217: 			h.Set("Grpc-Message", encodeGrpcMessage(m))
		handler_server.go#L227: 			h.Set("Grpc-Status-Details-Bin", encodeBinHeader(stBytes))
		handler_server.go#L270: 	h.Set("Content-Type", ht.contentType)
		handler_server.go#L282: 		h.Set("Grpc-Encoding", s.sendCompress)