Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for canonicalHost (0.1 sec)

  1. src/net/http/cookiejar/jar.go

    	}
    
    	if modified {
    		if len(submap) == 0 {
    			delete(j.entries, key)
    		} else {
    			j.entries[key] = submap
    		}
    	}
    }
    
    // canonicalHost strips port from host if present and returns the canonicalized
    // host name.
    func canonicalHost(host string) (string, error) {
    	var err error
    	if hasPort(host) {
    		host, _, err = net.SplitHostPort(host)
    		if err != nil {
    			return "", err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/net/http/cookiejar/jar_test.go

    	"uk":                  "uk",
    	"192.168.0.5":         "192.168.0.5",
    	"www.buggy.psl":       "www.buggy.psl",
    	"www2.buggy.psl":      "buggy.psl",
    	// The following are actual outputs of canonicalHost for
    	// malformed inputs to canonicalHost (see above).
    	"":              "",
    	".":             ".",
    	"..":            ".",
    	".net":          ".net",
    	"a.":            "a.",
    	"b.a.":          "a.",
    	"weird.stuff..": ".",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/tasks/internal/RelativeFileNameTransformer.java

            }
            return new RelativeFileNameTransformer(file, file);
        }
    
        @Override
        public String transform(File file) {
            String canonicalRoot;
            String canonicalFrom;
            String canonicalTo;
            try {
                canonicalRoot = rootDir.getCanonicalPath();
                canonicalFrom = currentDir.getCanonicalPath();
                canonicalTo = file.getCanonicalPath();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top