net/url.URL.Host (field)
76 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 == "" {
net/http/httputil
dump.go#L250: host = req.URL.Host
reverseproxy.go#L146: req.URL.Host = target.Host
cloud.google.com/go/storage
post_policy_v4.go#L318: Host: opts.Style.host(bucket),
reader.go#L111: Host: o.c.readHost,
storage.go#L137: readHost = u.Host
storage.go#L590: u.Host = opts.Style.host(bucket)
storage.go#L600: headersWithValue = append(headersWithValue, "host:"+u.Host)
storage.go#L724: u.Host = "storage.googleapis.com"
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 {
github.com/aws/aws-sdk-go/aws/request
request.go#L646: return r.URL.Host
github.com/aws/aws-sdk-go/aws/signer/v4
v4.go#L642: headerValues[i] = "host:" + ctx.Request.URL.Host
github.com/aws/aws-sdk-go/private/protocol
host.go#L14: err := ValidateEndpointHost(r.Operation.Name, r.HTTPRequest.URL.Host)
host_prefix.go#L50: r.HTTPRequest.URL.Host = prefix + r.HTTPRequest.URL.Host
github.com/go-git/go-git/v5/plumbing/transport/http
common.go#L155: h, p, err := net.SplitHostPort(r.URL.Host)
common.go#L157: h = r.URL.Host
github.com/go-redis/redis/v8
options.go#L212: h, p, err := net.SplitHostPort(u.Host)
options.go#L214: h = u.Host
github.com/golang-migrate/migrate/v4/source/file
file.go#L35: p = u.Host + u.Path
github.com/jackc/pgconn
config.go#L402: for _, host := range strings.Split(url.Host, ",") {
github.com/lib/pq
url.go#L58: if host, port, err := net.SplitHostPort(u.Host); err != nil {
url.go#L59: accrue("host", u.Host)
github.com/microcosm-cc/bluemonday
sanitize.go#L373: if u.Host != "" {
golang.org/x/net/http2
server.go#L2100: url_ = &url.URL{Host: rp.authority}
server.go#L2775: u.Host = w.rws.req.Host
server.go#L2780: if u.Host == "" {
server.go#L2897: authority: msg.url.Host,
transport.go#L469: addr := authorityAddr(req.URL.Scheme, req.URL.Host)
transport.go#L1475: host = req.URL.Host
write.go#L274: encKV(enc, ":authority", w.url.Host)
golang.org/x/pkgsite/internal/frontend
overview.go#L138: if destURL.Host != "github.com" {
playground.go#L19: var playgroundURL = &url.URL{Scheme: "https", Host: "play.golang.org"}
playground.go#L36: req.Header.Add("X-Origin-Host", pgURL.Host)
playground.go#L37: req.Host = pgURL.Host
playground.go#L39: req.URL.Host = pgURL.Host
golang.org/x/pkgsite/internal/middleware
betaRedirect.go#L71: Host: betaPkgGoDevHost,
google.golang.org/api/transport/http
dial.go#L302: u.Host = newHost
google.golang.org/grpc
proxy.go#L47: Host: address,
proxy.go#L88: URL: &url.URL{Host: backendAddr},
proxy.go#L131: newAddr = proxyURL.Host
rpc_util.go#L845: addr = t.Host
google.golang.org/grpc/internal/credentials
spiffe.go#L49: if len(uri.Host) == 0 || len(uri.RawPath) == 0 || len(uri.Path) == 0 {
spiffe.go#L53: if len(uri.Host) > 255 {
 |
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. |