- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 328 for aslash (3.29 sec)
-
src/net/http/httputil/reverseproxy.go
} // Same as singleJoiningSlash, but uses EscapedPath to determine // whether a slash should be added apath := a.EscapedPath() bpath := b.EscapedPath() aslash := strings.HasSuffix(apath, "/") bslash := strings.HasPrefix(bpath, "/") switch { case aslash && bslash: return a.Path + b.Path[1:], apath + bpath[1:] case !aslash && !bslash: return a.Path + "/" + b.Path, apath + "/" + bpath }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 23:37:42 UTC 2024 - 24.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go
// See-also: https://github.com/golang/go/issues/44290 func singleJoiningSlash(a, b string) string { aslash := strings.HasSuffix(a, "/") bslash := strings.HasPrefix(b, "/") switch { case aslash && bslash: return a + b[1:] case !aslash && !bslash: return a + "/" + b } return a + b } func (h *UpgradeAwareHandler) DialForUpgrade(req *http.Request) (net.Conn, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:10:30 UTC 2024 - 19.6K bytes - Viewed (0) -
src/os/exec_windows.go
cmd = cmd[1:] } inquote = !inquote } else { b = append(b, c) } nslash = 0 continue case '\\': nslash++ continue } b = appendBSBytes(b, nslash) nslash = 0 b = append(b, c) } return appendBSBytes(b, nslash), "" } // commandLineToArgv splits a command line into individual argument
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route_cache.go
h.WriteString(string(svc.Hostname)) h.Write(Slash) h.WriteString(svc.Attributes.Namespace) h.Write(Separator) } h.Write(Separator) for _, vs := range r.VirtualServices { for _, cfg := range model.VirtualServiceDependencies(vs) { h.WriteString(cfg.Kind.String()) h.Write(Slash) h.WriteString(cfg.Name) h.Write(Slash) h.WriteString(cfg.Namespace) h.Write(Separator) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 5.8K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
/** * Removes the leading directory separator from the specified filesystem path (if any). For platform-independent * behavior, this method accepts both the forward slash and the backward slash as separator. * * @param path The filesystem path, may be <code>null</code>. * @return The altered filesystem path or <code>null</code> if the input path was <code>null</code>. */
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 07:40:37 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/doc/main.go
// work. var period int // slash+1: if there's no slash, the value is -1 and start is 0; otherwise // start is the byte after the slash. for start := slash + 1; start < len(arg); start = period + 1 { period = strings.Index(arg[start:], ".") symbol := "" if period < 0 { period = len(arg) } else { period += start symbol = arg[period+1:] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_cache.go
} h.Write(Separator) if t.service != nil { h.WriteString(string(t.service.Hostname)) h.Write(Slash) h.WriteString(t.service.Attributes.Namespace) } h.Write(Separator) for _, dr := range t.destinationRule.GetFrom() { h.WriteString(dr.Name) h.Write(Slash) h.WriteString(dr.Namespace) } h.Write(Separator) for _, efk := range t.envoyFilterKeys { h.WriteString(efk)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 18 19:09:43 UTC 2024 - 6.1K bytes - Viewed (0) -
cmd/metacache-walk.go
// ReportNotFound will return errFileNotFound if all disks reports the BaseDir cannot be found. ReportNotFound bool // FilterPrefix will only return results with given prefix within folder. // Should never contain a slash. FilterPrefix string // ForwardTo will forward to the given object path. ForwardTo string // Limit the number of returned objects if > 0. Limit int // DiskID contains the disk ID of the disk.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 01 05:17:37 UTC 2024 - 12.4K bytes - Viewed (0) -
src/path/filepath/path.go
return filepathlite.Localize(path) } // ToSlash returns the result of replacing each separator character // in path with a slash ('/') character. Multiple separators are // replaced by multiple slashes. func ToSlash(path string) string { return filepathlite.ToSlash(path) } // FromSlash returns the result of replacing each slash ('/') character // in path with a separator character. Multiple slashes are replaced
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 15.5K bytes - Viewed (0) -
src/os/path_unix.go
// splitPath returns the base name and parent directory. func splitPath(path string) (string, string) { // if no better parent is found, the path is relative from "here" dirname := "." // Remove all but one leading slash. for len(path) > 1 && path[0] == '/' && path[1] == '/' { path = path[1:] } i := len(path) - 1 // Remove trailing slashes. for ; i > 0 && path[i] == '/'; i-- { path = path[:i] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 1.2K bytes - Viewed (0)