net/http.Header.Add (method)
28 uses
net/http (current package)
cookie.go#L163: w.Header().Add("Set-Cookie", v)
h2_bundle.go#L5583: rp.header.Add(sc.canonicalHeader(hf.Name), hf.Value)
header.go#L27: func (h Header) Add(key, value string) {
server.go#L518: t.Add(k, v)
transfer.go#L684: header.Add("Content-Length", first)
net/http/httptest
recorder.go#L213: res.Trailer.Add(strings.TrimPrefix(k, http.TrailerPrefix), v)
net/http/httputil
reverseproxy.go#L164: dst.Add(k, v)
reverseproxy.go#L323: rw.Header().Add("Trailer", strings.Join(trailerKeys, ", "))
reverseproxy.go#L359: rw.Header().Add(k, v)
github.com/aws/aws-sdk-go/aws/request
http_request.go#L19: req.Header.Add(k, vv)
github.com/aws/aws-sdk-go/private/protocol/rest
build.go#L171: header.Add(name, str)
build.go#L189: header.Add(prefix+keyStr, str)
github.com/go-git/go-git/v5/plumbing/transport/http
common.go#L20: req.Header.Add("User-Agent", "git/1.0")
common.go#L21: req.Header.Add("Host", host) // host:port
common.go#L24: req.Header.Add("Accept", "*/*")
common.go#L28: req.Header.Add("Accept", fmt.Sprintf("application/x-%s-result", requestType))
common.go#L29: req.Header.Add("Content-Type", fmt.Sprintf("application/x-%s-request", requestType))
common.go#L30: req.Header.Add("Content-Length", strconv.Itoa(content.Len()))
common.go#L233: r.Header.Add("Authorization", fmt.Sprintf("Bearer %s", a.Token))
golang.org/x/net/http2
server.go#L2028: rp.header.Add(sc.canonicalHeader(hf.Name), hf.Value)
golang.org/x/pkgsite/internal/frontend
playground.go#L35: req.Header.Add("X-Forwarded-Host", req.Host)
playground.go#L36: req.Header.Add("X-Origin-Host", pgURL.Host)
google.golang.org/grpc
proxy.go#L94: req.Header.Add(proxyAuthHeaderKey, "Basic "+basicAuth(u, p))
google.golang.org/grpc/internal/transport
handler_server.go#L225: h.Add(http2.TrailerPrefix+k, encodeMetadataHeader(k, v))
handler_server.go#L263: h.Add("Trailer", "Grpc-Status")
handler_server.go#L264: h.Add("Trailer", "Grpc-Message")
handler_server.go#L265: h.Add("Trailer", "Grpc-Status-Details-Bin")
handler_server.go#L283: h.Add(k, encodeMetadataHeader(k, v))
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |