net/http.Request.Host (field)
19 uses
net/http (current package)
client.go#L652: if req.Host != "" && req.Host != req.URL.Host {
client.go#L657: host = req.Host
client.go#L666: Host: host,
h2_bundle.go#L6092: Host: rp.authority,
h2_bundle.go#L6880: u.Host = w.rws.req.Host
h2_bundle.go#L8951: host := req.Host
request.go#L247: Host string
request.go#L583: host := r.Host
request.go#L896: Host: u.Host,
request.go#L1103: req.Host = req.URL.Host
request.go#L1104: if req.Host == "" {
request.go#L1105: req.Host = req.Header.get("Host")
server.go#L2461: return mux.handler(r.Host, r.URL.Path)
server.go#L2466: host := stripHostPort(r.Host)
transport.go#L1693: Host: cm.targetAddr,
nhooyr.io/websocket
accept.go#L217: if strings.EqualFold(r.Host, u.Host) {
accept.go#L233: return fmt.Errorf("request Origin %q is not authorized for Host %q", u.Host, r.Host)
dial.go#L192: req.Host = opts.Host
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |