- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isNotToken (0.28 sec)
-
src/net/http/http.go
// as mandated by RFC 3986 Section 6.2.3. func removeEmptyPort(host string) string { if hasPort(host) { return strings.TrimSuffix(host, ":") } return host } func isNotToken(r rune) bool { return !httpguts.IsTokenRune(r) } // stringContainsCTLByte reports whether s contains any ASCII control character. func stringContainsCTLByte(s string) bool { for i := 0; i < len(s); i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.1K bytes - Viewed (0) -
src/net/http/cookie.go
return "", quoted, false } } return raw, quoted, true } func isCookieNameValid(raw string) bool { if raw == "" { return false } return strings.IndexFunc(raw, isNotToken) < 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:33:05 UTC 2024 - 13.9K bytes - Viewed (0) -
src/net/http/request.go
| extension-method extension-method = token token = 1*<any CHAR except CTLs or separators> */ return len(method) > 0 && strings.IndexFunc(method, isNotToken) == -1 } // NewRequest wraps [NewRequestWithContext] using [context.Background]. func NewRequest(method, url string, body io.Reader) (*Request, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 49.4K bytes - Viewed (0)