net/url.URL.Path (field)
40 uses
net/url (current package)
url.go#L280: Path string // path (relative paths may omit leading slash)
url.go#L445: url.Path = "*"
url.go#L664: u.Path = path
url.go#L689: if err == nil && p == u.Path {
url.go#L693: if u.Path == "*" {
url.go#L696: return escape(u.Path, encodePath)
url.go#L809: n += len(u.Path)
url.go#L826: 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
clientconn.go#L139: Path: "/",
csrf.go#L68: if u.Path != "" || u.RawQuery != "" || u.Fragment != "" {
fs.go#L174: url := url.URL{Path: name}
fs.go#L685: if strings.HasSuffix(r.URL.Path, indexPage) {
fs.go#L708: url := r.URL.Path
fs.go#L728: url := r.URL.Path
fs.go#L815: if containsDotDot(r.URL.Path) {
fs.go#L849: if containsDotDot(r.URL.Path) {
fs.go#L989: upath := r.URL.Path
fs.go#L992: 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#L2339: p := strings.TrimPrefix(r.URL.Path, prefix)
server.go#L2341: if len(p) < len(r.URL.Path) && (r.URL.RawPath == "" || len(rp) < len(r.URL.RawPath)) {
server.go#L2346: r2.URL.Path = p
server.go#L2671: return RedirectHandler(u.String(), StatusTemporaryRedirect), u.Path, nil, nil
server.go#L2695: u := &url.URL{Path: path, RawQuery: r.URL.RawQuery}
server.go#L2740: return n2, nil, &url.URL{Path: cleanPath(u.Path) + "/", RawQuery: u.RawQuery}
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |