net/http.Request.Host (field)
41 uses
net/http (current package)
client.go#L645: if req.Host != "" && req.Host != req.URL.Host {
client.go#L650: host = req.Host
client.go#L659: Host: host,
h2_bundle.go#L5681: Host: rp.authority,
h2_bundle.go#L6330: u.Host = w.rws.req.Host
h2_bundle.go#L7976: host := req.Host
request.go#L238: Host string
request.go#L570: host := cleanHost(r.Host)
request.go#L885: Host: u.Host,
request.go#L1087: req.Host = req.URL.Host
request.go#L1088: if req.Host == "" {
request.go#L1089: req.Host = req.Header.get("Host")
server.go#L2394: return mux.handler(r.Host, r.URL.Path)
server.go#L2399: host := stripHostPort(r.Host)
transport.go#L1668: Host: cm.targetAddr,
net/http/httptest
httptest.go#L77: if req.Host == "" {
httptest.go#L78: req.Host = "example.com"
httptest.go#L85: ServerName: req.Host,
net/http/httputil
dump.go#L248: host := req.Host
cloud.google.com/go/errorreporting
errors.go#L187: Url: r.Host + r.RequestURI,
github.com/aws/aws-sdk-go/aws/request
request.go#L632: r.Host = stripPort(host)
request.go#L638: if r.Host != "" {
request.go#L639: return r.Host
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L639: if ctx.Request.Host != "" {
v4.go#L640: headerValues[i] = "host:" + ctx.Request.Host
github.com/aws/aws-sdk-go/private/protocol
host_prefix.go#L51: if len(r.HTTPRequest.Host) > 0 {
host_prefix.go#L52: r.HTTPRequest.Host = prefix + r.HTTPRequest.Host
github.com/prometheus/client_golang/prometheus/promhttp
instrument_server.go#L312: s += len(r.Host)
go.opencensus.io/plugin/ochttp
client_stats.go#L37: tag.Upsert(KeyClientHost, req.Host),
client_stats.go#L38: tag.Upsert(Host, req.Host),
server.go#L151: tag.Upsert(Host, r.Host),
trace.go#L160: trace.StringAttribute(HostAttribute, r.Host),
golang.org/x/net/http2
server.go#L2126: Host: rp.authority,
server.go#L2775: u.Host = w.rws.req.Host
transport.go#L1473: host := req.Host
golang.org/x/pkgsite/internal/frontend
playground.go#L35: req.Header.Add("X-Forwarded-Host", req.Host)
playground.go#L37: req.Host = pgURL.Host
google.golang.org/grpc/internal/transport
handler_server.go#L89: if r.Host != "" {
handler_server.go#L90: metakv = append(metakv, ":authority", r.Host)
 |
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. |