net/http.Request.Host (field)
30 uses
net/http (current package)
client.go#L176: if req.Host != "" {
client.go#L178: cookieURL.Host = req.Host
client.go#L656: if req.Host != "" && req.Host != req.URL.Host {
client.go#L661: host = req.Host
client.go#L670: Host: host,
clientconn.go#L146: Host: host,
csrf.go#L161: if o, err := url.Parse(origin); err == nil && o.Host == req.Host {
h2_bundle.go#L6313: Host: rp.Authority,
h2_bundle.go#L7087: u.Host = w.rws.req.Host
h2_bundle.go#L8921: Host: req.Host,
request.go#L245: Host string
request.go#L605: host := r.Host
request.go#L921: Host: u.Host,
request.go#L1149: req.Host = req.URL.Host
request.go#L1150: if req.Host == "" {
request.go#L1151: req.Host = req.Header.get("Host")
servemux121.go#L115: return mux.handler(r.Host, r.URL.Path)
servemux121.go#L120: host := stripHostPort(r.Host)
server.go#L2675: n, matches, _ = mux.matchOrRedirect(r.Host, r.Method, path, nil)
server.go#L2679: host = stripHostPort(r.Host)
transport.go#L1883: Host: cm.targetAddr,
net/http/httputil
dump.go#L247: host := req.Host
reverseproxy.go#L60: r.Out.Host = ""
reverseproxy.go#L93: r.Out.Header.Set("X-Forwarded-Host", r.In.Host)
golang.org/x/net/http2
server.go#L2222: Host: rp.Authority,
server.go#L2975: u.Host = w.rws.req.Host
transport.go#L1263: Host: req.Host,
google.golang.org/grpc/internal/transport
handler_server.go#L117: if r.Host != "" {
handler_server.go#L118: metakv = append(metakv, ":authority", r.Host)