Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hasFlush (0.28 sec)

  1. src/net/http/httptest/recorder_test.go

    				w.WriteHeader(201)
    				w.WriteHeader(202)
    			},
    			check(hasStatus(200), hasContents("hi first"), hasFlush(false)),
    		},
    		{
    			"write string",
    			func(w http.ResponseWriter, r *http.Request) {
    				io.WriteString(w, "hi first")
    			},
    			check(
    				hasStatus(200),
    				hasContents("hi first"),
    				hasFlush(false),
    				hasHeader("Content-Type", "text/plain; charset=utf-8"),
    			),
    		},
    		{
    			"flush",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    	}
    	return strings.Join(replaced, ",")
    }
    
    func hasCombinedTypeArgs(args []string) (bool, error) {
    	hasSlash := 0
    	for _, s := range args {
    		if strings.Contains(s, "/") {
    			hasSlash++
    		}
    	}
    	switch {
    	case hasSlash > 0 && hasSlash == len(args):
    		return true, nil
    	case hasSlash > 0 && hasSlash != len(args):
    		baseCmd := "cmd"
    		if len(os.Args) > 0 {
    			baseCmdSlice := strings.Split(os.Args[0], "/")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  3. src/net/url/url.go

    					return "", EscapeError(s[i : i+3])
    				}
    			}
    			i += 3
    		case '+':
    			hasPlus = mode == encodeQueryComponent
    			i++
    		default:
    			if (mode == encodeHost || mode == encodeZone) && s[i] < 0x80 && shouldEscape(s[i], mode) {
    				return "", InvalidHostError(s[i : i+1])
    			}
    			i++
    		}
    	}
    
    	if n == 0 && !hasPlus {
    		return s, nil
    	}
    
    	var t strings.Builder
    	t.Grow(len(s) - 2*n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top