Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for isRedirect (0.44 sec)

  1. pilot/cmd/pilot-agent/status/server.go

    				CheckRedirect: redirectChecker(),
    			}
    		}
    	}
    
    	return s, nil
    }
    
    // Copies logic from https://github.com/kubernetes/kubernetes/blob/b152001f459/pkg/probe/http/http.go#L129-L130
    func isRedirect(code int) bool {
    	return code >= http.StatusMultipleChoices && code < http.StatusBadRequest
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Response.kt

        level = DeprecationLevel.ERROR,
      )
      fun body() = body
    
      fun newBuilder(): Builder = commonNewBuilder()
    
      /** Returns true if this response redirects to another resource. */
      val isRedirect: Boolean = commonIsRedirect
    
      @JvmName("-deprecated_networkResponse")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "networkResponse"),
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. pilot/cmd/pilot-agent/status/server_test.go

    		for code := http.StatusOK; code <= http.StatusNetworkAuthenticationRequired; code++ {
    			if http.StatusText(code) == "" { // Not a valid HTTP code
    				continue
    			}
    			expect := code
    			if isRedirect(code) {
    				expect = 200
    			}
    			t.Run(fmt.Sprint(code), func(t *testing.T) {
    				testFn(t, test{
    					probePath: "app-health/code/livez",
    					config: KubeAppProbers{
    						"/app-health/code/livez": &Prober{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val peekBody: ResponseBody = response.peekBody(0L)
        val body: ResponseBody = response.body
        val builder: Response.Builder = response.newBuilder()
        val redirect: Boolean = response.isRedirect
        val networkResponse: Response? = response.networkResponse
        val cacheResponse: Response? = response.cacheResponse
        val priorResponse: Response? = response.priorResponse
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public final fun headers ()Lokhttp3/Headers;
    	public final fun headers (Ljava/lang/String;)Ljava/util/List;
    	public final fun isRedirect ()Z
    	public final fun isSuccessful ()Z
    	public final fun message ()Ljava/lang/String;
    	public final fun networkResponse ()Lokhttp3/Response;
    	public final fun newBuilder ()Lokhttp3/Response$Builder;
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  6. test/fixedbugs/issue4909b.go

    		}
    		// Does it involve an indirection?
    		nlast := ns[len(ns)-1]
    		nprev := 1
    		if len(ns) > 1 {
    			nprev = ns[len(ns)-2]
    		}
    		isIndirect := false
    		for n := nlast / 2; n > nprev; n /= 2 {
    			if n%2 == 1 {
    				isIndirect = true
    				break
    			}
    		}
    		fmt.Print(")")
    		if isIndirect {
    			fmt.Print(` // ERROR "indirection|embedded via a pointer"`)
    		}
    		fmt.Print("\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 19 06:26:35 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

            byte[] stub, frag;
            NdrBuffer buf, fbuf;
            boolean isLast, isDirect;
            DcerpcException de;
    
            if (state == 0) {
                bind();
            }
    
            isDirect = true;
    
            stub = jcifs.smb1.smb1.BufferCache.getBuffer();
            try {
                int off, tot, n;
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_get_lazy_upgrade_lazy.txt

    require (
    	direct v0.0.0
    	example.com/lazyupgrade v0.1.0
    )
    
    replace (
    	direct => ./direct
    	example.com/lazyupgrade v0.1.0 => ./lazyupgrade@v0.1.0
    	example.com/lazyupgrade v0.1.1 => ./lazyupgrade@v0.1.1
    )
    -- usedirect/usedirect.go --
    package use
    
    import _ "example.com/lazyupgrade"
    -- useindirect/useindirect.go --
    package use
    
    import _ "direct"
    -- direct/go.mod --
    module direct
    
    go 1.17
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 30 17:58:12 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

                        boolean isDirect) throws IOException {
            if (out != null && out.isOpen() == false)
                throw new IOException("DCERPC pipe is no longer open");
    
            if (in == null)
                in = (SmbFileInputStream)pipe.getNamedPipeInputStream();
            if (out == null)
                out = (SmbFileOutputStream)pipe.getNamedPipeOutputStream();
            if (isDirect) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  10. cmd/import-boss/main.go

    		}
    	}
    
    	realPkgPath := unmassage(pkg.PkgPath)
    
    	direct, indirect := transitiveImports(pkg)
    	isDirect := map[string]bool{}
    	for _, imp := range direct {
    		isDirect[imp] = true
    	}
    	relate := func(imp string) string {
    		if isDirect[imp] {
    			return "->"
    		}
    		return "-->"
    	}
    
    	var errs []error
    	for _, imp := range uniq(direct, indirect) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top