net/url.URL.Host (field)
79 uses
net/url (current package)
url.go#L362: Host string // host or host:port
url.go#L554: url.User, url.Host, err = parseAuthority(authority)
url.go#L807: if u.Scheme != "" || u.Host != "" || u.User != nil {
url.go#L808: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L815: if h := u.Host; h != "" {
url.go#L820: if path != "" && path[0] != '/' && u.Host != "" {
url.go#L1073: if ref.Scheme != "" || ref.Host != "" || ref.User != nil {
url.go#L1082: url.Host = ""
url.go#L1094: url.Host = u.Host
url.go#L1133: host, _ := splitHostPort(u.Host)
url.go#L1141: _, port := splitHostPort(u.Host)
net/http
client.go#L653: if req.Host != "" && req.Host != req.URL.Host {
h2_bundle.go#L5835: url_ = &url.URL{Host: rp.authority}
h2_bundle.go#L6510: u.Host = w.rws.req.Host
h2_bundle.go#L6515: if u.Host == "" {
h2_bundle.go#L6636: authority: msg.url.Host,
h2_bundle.go#L7204: addr := http2authorityAddr(req.URL.Scheme, req.URL.Host)
h2_bundle.go#L8433: host = req.URL.Host
h2_bundle.go#L10004: http2encKV(enc, ":authority", w.url.Host)
request.go#L576: host = cleanHost(r.URL.Host)
request.go#L878: u.Host = removeEmptyPort(u.Host)
request.go#L888: Host: u.Host,
request.go#L1092: req.Host = req.URL.Host
server.go#L2151: if u.Scheme == "" && u.Host == "" {
server.go#L2405: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
transport.go#L556: if req.URL.Host == "" {
net/http/httputil
dump.go#L250: host = req.URL.Host
reverseproxy.go#L148: req.URL.Host = target.Host
crypto/x509
parser.go#L410: if len(uri.Host) > 0 {
parser.go#L411: if _, ok := domainToReverseLabels(uri.Host); !ok {
verify.go#L417: host := uri.Host
verify.go#L424: host, _, err = net.SplitHostPort(uri.Host)
github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4
host.go#L23: return r.URL.Host
github.com/aws/aws-sdk-go-v2/aws/signer/v4
v4.go#L171: host := req.URL.Host
github.com/aws/aws-sdk-go-v2/internal/v4a
v4a.go#L300: host := req.URL.Host
github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4
host.go#L23: return r.URL.Host
github.com/aws/aws-sdk-go-v2/service/internal/s3shared
update_endpoint.go#L61: parts := strings.Split(req.URL.Host, ".")
update_endpoint.go#L63: return out, metadata, fmt.Errorf("unable to update endpoint host for dualstack, hostname invalid, %s", req.URL.Host)
update_endpoint.go#L74: req.URL.Host = strings.Join(parts, ".")
github.com/aws/aws-sdk-go-v2/service/s3
api_op_WriteGetObjectResponse.go#L426: req.URL.Host = prefix.String() + req.URL.Host
github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations
host.go#L17: host := req.URL.Host
host.go#L20: req.URL.Host = newEndpointPrefix + host[len(oldEndpointPrefix):]
process_arn_resource.go#L443: req.URL.Host = accessPointHostPrefix + req.URL.Host
process_arn_resource.go#L449: if err := http.ValidateEndpointHost(req.URL.Host); err != nil {
process_arn_resource.go#L465: req.URL.Host = accessPointHostPrefix + req.URL.Host
process_arn_resource.go#L471: if err := http.ValidateEndpointHost(req.URL.Host); err != nil {
process_arn_resource.go#L553: req.URL.Host = outpostAPHostPrefix + req.URL.Host
process_arn_resource.go#L559: if err := http.ValidateEndpointHost(req.URL.Host); err != nil {
update_endpoint.go#L207: parts := strings.Split(req.URL.Host, ".")
update_endpoint.go#L209: return fmt.Errorf("unable to update endpoint host for S3 accelerate, hostname invalid, %s", req.URL.Host)
update_endpoint.go#L224: req.URL.Host = strings.Join(parts, ".")
update_endpoint.go#L234: u.Host = bucket + "." + u.Host
github.com/go-pg/pg/v10
options.go#L187: Addr: parsedURL.Host,
golang.org/x/net/http2
server.go#L2238: url_ = &url.URL{Host: rp.authority}
server.go#L2997: u.Host = w.rws.req.Host
server.go#L3002: if u.Host == "" {
server.go#L3123: authority: msg.url.Host,
transport.go#L552: addr := authorityAddr(req.URL.Scheme, req.URL.Host)
transport.go#L1841: host = req.URL.Host
write.go#L274: encKV(enc, ":authority", w.url.Host)
google.golang.org/grpc
clientconn.go#L1600: Authority: u.Host,
google.golang.org/grpc/internal/credentials
spiffe.go#L59: if len(uri.Host) == 0 || len(uri.Path) == 0 {
spiffe.go#L63: if len(uri.Host) > 255 {
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L143: if target.URL.Host == "" {
dns_resolver.go#L146: d.resolver, err = customAuthorityResolver(target.URL.Host)
google.golang.org/grpc/internal/resolver/unix
unix.go#L37: if target.URL.Host != "" {
unix.go#L38: return nil, fmt.Errorf("invalid (non-empty) authority: %v", target.URL.Host)
google.golang.org/grpc/internal/transport
http_util.go#L406: addr = t.Host
proxy.go#L44: Host: address,
proxy.go#L82: URL: &url.URL{Host: backendAddr},
proxy.go#L122: newAddr = proxyURL.Host