Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 1,330 for reaper (0.12 seconds)

  1. cmd/signature-v4-utils_test.go

    	}
    
    	// "x-amz-content-sha256" header value from the extracted result.
    	extractedContentSha256 := extractedSignedHeaders.Get("x-amz-content-sha256")
    	// "host" header value from the extracted result.
    	extractedHost := extractedSignedHeaders.Get("host")
    	//  "x-amz-date" header from the extracted result.
    	extractedDate := extractedSignedHeaders.Get("x-amz-date")
    	// extracted `expect` header.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  2. tests/test_request_params/test_header/test_optional_str.py

    import pytest
    from fastapi import FastAPI, Header
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.get("/optional-str")
    async def read_optional_str(p: Annotated[str | None, Header()] = None):
        return {"p": p}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

          // Parse each header.
          for (i in 0 until responseHeaders.size) {
            if (!responseHeaders.name(i).equals(HEADER_WEB_SOCKET_EXTENSION, ignoreCase = true)) {
              continue // Not a header we're interested in.
            }
            val header = responseHeaders.value(i)
    
            // Parse each extension.
            var pos = 0
            while (pos < header.length) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  4. tests/test_request_params/test_header/test_optional_list.py

    import pytest
    from fastapi import FastAPI, Header
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.get("/optional-list-str")
    async def read_optional_list_str(
        p: Annotated[list[str] | None, Header()] = None,
    ):
        return {"p": p}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  5. cmd/signature-v4.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    // Package cmd This file implements helper functions to validate AWS
    // Signature Version '4' authorization header.
    //
    // This package provides comprehensive helpers for following signature
    // types.
    // - Based on Authorization header.
    // - Based on Query parameters.
    // - Based on Form POST policy.
    package cmd
    
    import (
    	"bytes"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Dec 13 22:19:12 GMT 2024
    - 12.4K bytes
    - Click Count (0)
  6. cmd/healthcheck-handler.go

    		DeploymentType: r.Form.Get("deployment-type"),
    	}
    	result := objLayer.Health(ctx, opts)
    	w.Header().Set(xhttp.MinIOWriteQuorum, strconv.Itoa(result.WriteQuorum))
    	w.Header().Set(xhttp.MinIOStorageClassDefaults, strconv.FormatBool(result.UsingDefaults))
    	// return how many drives are being healed if any
    	if result.HealingDrives > 0 {
    		w.Header().Set(xhttp.MinIOHealingDrives, strconv.Itoa(result.HealingDrives))
    	}
    	if !result.Healthy {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 26 07:44:34 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  7. docs_src/dependencies/tutorial006_py310.py

    from fastapi import Depends, FastAPI, Header, HTTPException
    
    app = FastAPI()
    
    
    async def verify_token(x_token: str = Header()):
        if x_token != "fake-super-secret-token":
            raise HTTPException(status_code=400, detail="X-Token header invalid")
    
    
    async def verify_key(x_key: str = Header()):
        if x_key != "fake-super-secret-key":
            raise HTTPException(status_code=400, detail="X-Key header invalid")
        return x_key
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 583 bytes
    - Click Count (0)
  8. docs_src/app_testing/app_b_an_py310/main.py

    async def read_main(item_id: str, x_token: Annotated[str, Header()]):
        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
        if item_id not in fake_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return fake_db[item_id]
    
    
    @app.post("/items/")
    async def create_item(item: Item, x_token: Annotated[str, Header()]) -> Item:
        if x_token != fake_secret_token:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 13:32:24 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  9. src/bytes/example_test.go

    	var a, b []byte
    	if bytes.Compare(a, b) < 0 {
    		// a less b
    	}
    	if bytes.Compare(a, b) <= 0 {
    		// a less or equal b
    	}
    	if bytes.Compare(a, b) > 0 {
    		// a greater b
    	}
    	if bytes.Compare(a, b) >= 0 {
    		// a greater or equal b
    	}
    
    	// Prefer Equal to Compare for equality comparisons.
    	if bytes.Equal(a, b) {
    		// a equal b
    	}
    	if !bytes.Equal(a, b) {
    		// a not equal b
    	}
    }
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon May 12 16:07:54 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/graph/MapRetrievalCache.java

        // in combination with immutable cache entries, will ensure a thread-safe cache.
        CacheEntry<K, V> entry;
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        entry = cacheEntry1;
        if (entry != null && entry.key == key) {
          return entry.value;
        }
        entry = cacheEntry2;
        if (entry != null && entry.key == key) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
Back to Top