net/url.URL.Path (field)
31 uses
net/url (current package)
url.go#L363: Path string // path (relative paths may omit leading slash)
url.go#L522: url.Path = "*"
url.go#L681: u.Path = path
url.go#L703: if err == nil && p == u.Path {
url.go#L707: if u.Path == "*" {
url.go#L710: return escape(u.Path, encodePath)
url.go#L821: if u.Host != "" || u.Path != "" || u.User != nil {
url.go#L1089: url.Path = ""
url.go#L1092: if ref.Path == "" && ref.RawQuery == "" {
net/http
fs.go#L161: url := url.URL{Path: name}
fs.go#L592: if strings.HasSuffix(r.URL.Path, indexPage) {
fs.go#L615: url := r.URL.Path
fs.go#L630: url := r.URL.Path
fs.go#L715: if containsDotDot(r.URL.Path) {
fs.go#L843: upath := r.URL.Path
fs.go#L846: r.URL.Path = upath
request.go#L496: return r.Method == "PRI" && len(r.Header) == 0 && r.URL.Path == "*" && r.Proto == "HTTP/2.0"
request.go#L586: } else if r.Method == "CONNECT" && r.URL.Path == "" {
server.go#L2103: p := strings.TrimPrefix(r.URL.Path, prefix)
server.go#L2105: if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
server.go#L2110: r2.URL.Path = p
server.go#L2137: oldpath := r.URL.Path
server.go#L2339: u = &url.URL{Path: path, RawQuery: u.RawQuery}
server.go#L2390: if u, ok := mux.redirectToPathSlash(r.URL.Host, r.URL.Path, r.URL); ok {
server.go#L2391: return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
server.go#L2394: return mux.handler(r.Host, r.URL.Path)
server.go#L2400: path := cleanPath(r.URL.Path)
server.go#L2405: return RedirectHandler(u.String(), StatusMovedPermanently), u.Path
server.go#L2408: if path != r.URL.Path {
server.go#L2411: url.Path = path
server.go#L2415: return mux.handler(host, r.URL.Path)