net/url.URL.Host (field)
39 uses
net/url (current package)
url.go#L366: Host string // host or host:port
url.go#L559: url.User, url.Host, err = parseAuthority(authority)
url.go#L817: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L818: if u.OmitHost && 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#L834: if path != "" && path[0] != '/' && u.Host != "" {
url.go#L1084: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1093: url.Host = ""
url.go#L1105: url.Host = u.Host
url.go#L1144: host, _ := splitHostPort(u.Host)
url.go#L1152: _, port := splitHostPort(u.Host)
net/http
client.go#L652: if req.Host != "" && req.Host != req.URL.Host {
h2_bundle.go#L6066: url_ = &url.URL{Host: rp.authority}
h2_bundle.go#L6880: u.Host = w.rws.req.Host
h2_bundle.go#L6885: if u.Host == "" {
h2_bundle.go#L7006: authority: msg.url.Host,
h2_bundle.go#L7640: addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
h2_bundle.go#L8953: host = req.URL.Host
h2_bundle.go#L10530: http2encKV(enc, ":authority", w.url.Host)
request.go#L588: host = r.URL.Host
request.go#L886: u.Host = removeEmptyPort(u.Host)
request.go#L896: Host: u.Host,
request.go#L1103: req.Host = req.URL.Host
server.go#L2203: if u.Scheme == "" && u.Host == "" {
server.go#L2457: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
transport.go#L566: if req.URL.Host == "" {
crypto/x509
parser.go#L397: if len(uri.Host) > 0 {
parser.go#L398: if _, ok := domainToReverseLabels(uri.Host); !ok {
verify.go#L419: host := uri.Host
verify.go#L426: host, _, err = net.SplitHostPort(uri.Host)
github.com/gotd/td/telegram/auth/qrlogin
token.go#L28: case parsed.Host != "login":
token.go#L29: return Token{}, errors.Errorf("wrong path %q", parsed.Host)
nhooyr.io/websocket
accept.go#L217: if strings.EqualFold(r.Host, u.Host) {
accept.go#L222: matched, err := match(hostPattern, u.Host)
accept.go#L230: if u.Host == "" {
accept.go#L233: return fmt.Errorf("request Origin %q is not authorized for Host %q", u.Host, r.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. |