Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 191 for idempotent (0.15 sec)

  1. src/net/http/request.go

    		case "GET", "HEAD", "OPTIONS", "TRACE":
    			return true
    		}
    		// The Idempotency-Key, while non-standard, is widely used to
    		// mean a POST or other request is idempotent. See
    		// https://golang.org/issue/19943#issuecomment-421092421
    		if r.Header.has("Idempotency-Key") || r.Header.has("X-Idempotency-Key") {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/math/big/float_test.go

    			toBinary(r1),
    			toBinary(r),
    		)
    		return
    	}
    
    	// h and f should be the same
    	// (repeated rounding should be idempotent)
    	h := new(Float).SetMode(mode).SetPrec(prec).Set(f)
    	if !alike(h, f) {
    		t.Errorf("round %s (%d bits, %s) not idempotent: got %s and %s; want %s",
    			toBinary(x), prec, mode,
    			toBinary(h.int64()),
    			toBinary(r1),
    			toBinary(r),
    		)
    		return
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  3. src/net/rpc/server.go

    type ServerCodec interface {
    	ReadRequestHeader(*Request) error
    	ReadRequestBody(any) error
    	WriteResponse(*Response, any) error
    
    	// Close can be called multiple times and must be idempotent.
    	Close() error
    }
    
    // ServeConn runs the [DefaultServer] on a single connection.
    // ServeConn blocks, serving the connection until the client hangs up.
    // The caller typically invokes ServeConn in a go statement.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. cluster/gce/windows/common.psm1

    # Hash argument with an optional Algorithm, in which case it will attempt to
    # validate the downloaded file against the hash. SHA512 will be used if
    # -Algorithm is not provided.
    # This function is idempotent, if OutFile already exists and has the correct Hash
    # then the download will be skipped. If the Hash is incorrect, the file will be
    # overwritten.
    function MustDownload-File {
      param (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 19 14:47:38 UTC 2022
    - 25.4K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/cache.go

    		//
    		// This differs from os.WriteFile, which truncates to 0 *before* writing
    		// via os.O_TRUNC. Truncating only after writing ensures that a second write
    		// of the same content to the same file is idempotent, and does not — even
    		// temporarily! — undo the effect of the first write.
    		err = f.Truncate(int64(len(entry)))
    	}
    	if closeErr := f.Close(); err == nil {
    		err = closeErr
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // if the object being admitted is modified by other admission plugins after the initial webhook call.
      // Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
      // Note:
      // * the number of additional invocations is not guaranteed to be exactly one.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  7. pkg/kube/inject/inject_test.go

    			if actual != tc.want {
    				t.Fatalf("Unexpected result.\nExpected:\n%v\nActual:\n%v", tc.want, actual)
    			}
    			t.Run("idempotency", func(t *testing.T) {
    				actual := appendMultusNetwork(actual, "istio-cni")
    				if actual != tc.want {
    					t.Fatalf("Function is not idempotent.\nExpected:\n%v\nActual:\n%v", tc.want, actual)
    				}
    			})
    		})
    	}
    }
    
    func Test_updateClusterEnvs(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_2x.md

     *  New: Support for SOCKS proxies.
     *  New: Support for `TLS_FALLBACK_SCSV`.
     *  New: Update HTTP/2 support to `h2-16` and `hpack-10`.
     *  New: APIs to prevent retrying non-idempotent requests.
     *  Fix: Drop NPN support. Going forward we support ALPN only.
     *  Fix: The hostname verifier is now strict. This is consistent with the hostname
        verifier in modern browsers.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/plugins.adoc

    There are also some constraints and possible limitations.
    
    [[sec:constrained_syntax]]
    ==== Constrained Syntax
    
    The `plugins {}` block does not support arbitrary code.
    
    It is constrained to be idempotent (produce the same result every time) and side effect-free (safe for Gradle to execute at any time).
    
    The form is:
    
    ====
    [.multi-language-sample]
    =====
    .build.gradle.kts
    [source,kotlin]
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 04:11:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. src/net/http/transport_test.go

    			req:  &Request{Method: "POST", Header: Header{"Idempotency-Key": {"x"}}},
    			want: true,
    		},
    		{
    			name: "POST_x-idempotency-key",
    			req:  &Request{Method: "POST", Header: Header{"X-Idempotency-Key": {"x"}}},
    			want: true,
    		},
    		{
    			name: "POST_body",
    			req:  &Request{Method: "POST", Header: Header{"Idempotency-Key": {"x"}}, Body: someBody},
    			want: false,
    		},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top