net/url.URL.Path (field)
59 uses
net/url (current package)
url.go#L376: Path string // path (relative paths may omit leading slash)
url.go#L522: url.Path = "*"
url.go#L697: u.Path = path
url.go#L722: if err == nil && p == u.Path {
url.go#L726: if u.Path == "*" {
url.go#L729: return escape(u.Path, encodePath)
url.go#L842: n += len(u.Path)
url.go#L859: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L1127: url.Path = ""
url.go#L1130: if ref.Path == "" && !ref.ForceQuery && ref.RawQuery == "" {
url.go#L1137: if ref.Path == "" && u.Opaque != "" {
url.go#L1141: url.Path = ""
net/http
fs.go#L169: url := url.URL{Path: name}
fs.go#L680: if strings.HasSuffix(r.URL.Path, indexPage) {
fs.go#L703: url := r.URL.Path
fs.go#L723: url := r.URL.Path
fs.go#L807: if containsDotDot(r.URL.Path) {
fs.go#L841: if containsDotDot(r.URL.Path) {
fs.go#L981: upath := r.URL.Path
fs.go#L984: r.URL.Path = upath
request.go#L530: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L649: } else if r.Method == "CONNECT" && r.URL.Path == "" {
servemux121.go#L111: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
servemux121.go#L112: return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
servemux121.go#L115: return mux.handler(r.Host, r.URL.Path)
servemux121.go#L121: path := cleanPath(r.URL.Path)
servemux121.go#L126: return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
servemux121.go#L129: if path != r.URL.Path {
servemux121.go#L131: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
servemux121.go#L135: return mux.handler(host, r.URL.Path)
servemux121.go#L188: u = &url.URL{Path: path, RawQuery: u.RawQuery}
server.go#L2347: p := strings.TrimPrefix(r.URL.Path, prefix)
server.go#L2349: if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
server.go#L2354: r2.URL.Path = p
server.go#L2381: oldpath := r.URL.Path
server.go#L2672: return RedirectHandler(u.String(), StatusMovedPermanently), u.Path, nil, nil
server.go#L2688: return RedirectHandler(u.String(), StatusMovedPermanently), u.Path, nil, nil
server.go#L2696: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
server.go#L2734: return nil, nil, &url.URL{Path: cleanPath(u.Path) + "/", RawQuery: u.RawQuery}
net/http/httputil
reverseproxy.go#L223: return singleJoiningSlash(a.Path, b.Path), ""
reverseproxy.go#L235: return a.Path + b.Path[1:], apath + bpath[1:]
reverseproxy.go#L237: return a.Path + "/" + b.Path, apath + "/" + bpath
reverseproxy.go#L239: return a.Path + b.Path, apath + bpath
reverseproxy.go#L273: req.URL.Path, req.URL.RawPath = joinURLPath(target, req.URL)
net/http/pprof
pprof.go#L387: if name, found := strings.CutPrefix(r.URL.Path, "/debug/pprof/"); found {
pprof.go#L448: link := &url.URL{Path: profile.Href, RawQuery: "debug=1"}
go.uber.org/zap
sink.go#L148: return sr.newFileSinkFromPath(u.Path)
golang.org/x/net/trace
trace.go#L121: _, pat := http.DefaultServeMux.Handler(&http.Request{URL: &url.URL{Path: debugRequestsPath}})
google.golang.org/grpc/internal/credentials
spiffe.go#L59: if len(uri.Host) == 0 || len(uri.Path) == 0 {
google.golang.org/grpc/internal/resolver/delegatingresolver
delegatingresolver.go#L161: url.Path = "/" + r.proxyURL.Host
google.golang.org/grpc/internal/resolver/unix
unix.go#L46: endpoint := target.URL.Path
google.golang.org/grpc/internal/transport
handler_server.go#L419: method: req.URL.Path,
http_util.go#L459: addr := t.Path
google.golang.org/grpc/resolver
resolver.go#L279: endpoint := t.URL.Path