net/url.URL.Host (field)
32 uses
net/url (current package)
url.go#L362: Host string // host or host:port
url.go#L567: url.User, url.Host, err = parseAuthority(authority)
url.go#L820: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L821: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L828: if h := u.Host; h != "" {
url.go#L833: if path != "" && path[0] != '/' && u.Host != "" {
url.go#L1079: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1088: url.Host = ""
url.go#L1100: url.Host = u.Host
url.go#L1139: host, _ := splitHostPort(u.Host)
url.go#L1147: _, port := splitHostPort(u.Host)
net/http
client.go#L645: if req.Host != "" && req.Host != req.URL.Host {
h2_bundle.go#L5655: url_ = &url.URL{Host: rp.authority}
h2_bundle.go#L6330: u.Host = w.rws.req.Host
h2_bundle.go#L6335: if u.Host == "" {
h2_bundle.go#L6452: authority: msg.url.Host,
h2_bundle.go#L6972: addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
h2_bundle.go#L7978: host = req.URL.Host
h2_bundle.go#L9524: http2encKV(enc, ":authority", w.url.Host)
request.go#L575: host = cleanHost(r.URL.Host)
request.go#L875: u.Host = removeEmptyPort(u.Host)
request.go#L885: Host: u.Host,
request.go#L1087: req.Host = req.URL.Host
server.go#L2136: if u.Scheme == "" && u.Host == "" {
server.go#L2390: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
transport.go#L554: if req.URL.Host == "" {
crypto/x509
verify.go#L440: host := uri.Host
verify.go#L447: host, _, err = net.SplitHostPort(uri.Host)
x509.go#L1087: if len(uri.Host) > 0 {
x509.go#L1088: if _, ok := domainToReverseLabels(uri.Host); !ok {