Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isNotToken (0.12 sec)

  1. 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)
  2. 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)
Back to top