- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for canonicalHost (0.13 sec)
-
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) -
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)