Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,224 for header2 (0.07 sec)

  1. cmd/signature-v4.go

    )
    
    // getCanonicalHeaders generate a list of request headers with their values
    func getCanonicalHeaders(signedHeaders http.Header) string {
    	var headers []string
    	vals := make(http.Header)
    	for k, vv := range signedHeaders {
    		k = strings.ToLower(k)
    		headers = append(headers, k)
    		vals[k] = vv
    	}
    	sort.Strings(headers)
    
    	var buf bytes.Buffer
    	for _, k := range headers {
    		buf.WriteString(k)
    		buf.WriteByte(':')
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HeadersRequestTest.kt

        val headers = response.headers
        assertThat(headers.size).isEqualTo(1)
        assertThat(headers.name(0)).isEqualTo(":version")
        assertThat(headers.value(0)).isEqualTo("HTTP/1.1")
      }
    
      @Test fun http2HeadersListDropsForbiddenHeadersHttp2() {
        val request =
          Request.Builder()
            .url("http://square.com/")
            .header("Connection", "upgrade")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_header_params/test_tutorial002_an_py39.py

            ),
            (
                "/items",
                {"strange-header": "Not really underscore"},
                200,
                {"strange_header": None},
            ),
        ],
    )
    def test(path, headers, expected_status, expected_response, client: TestClient):
        response = client.get(path, headers=headers)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_bigger_applications/test_main_an.py

        response = client.get("/items?token=jessica", headers={"X-Token": "invalid"})
        assert response.status_code == 400
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_items_bar_with_invalid_token(client: TestClient):
        response = client.get("/items/bar?token=jessica", headers={"X-Token": "invalid"})
        assert response.status_code == 400
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  5. docs/site-replication/run-replication-with-checksum-header.sh

    	exit_1
    fi
    
    echo "Set default encryption on "
    
    # test if checksum header is replicated for encrypted objects
    # Enable SSE KMS for test-bucket bucket
    ./mc encrypt set sse-kms minio-default-key minio1/test-bucket --insecure
    
    # Load objects to source site with checksum header
    echo "Loading objects to source MinIO instance"
    OBJ_CHKSUM=$(openssl dgst -sha256 -binary </tmp/data/obj | base64)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 08:02:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          Header("content-disposition", ""),
          Header("content-encoding", ""),
          Header("content-language", ""),
          Header("content-length", ""),
          Header("content-location", ""),
          Header("content-range", ""),
          Header("content-type", ""),
          Header("cookie", ""),
          Header("date", ""),
          Header("etag", ""),
          Header("expect", ""),
          Header("expires", ""),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. cmd/object-api-options.go

    		clientKey, err = crypto.SSEC.ParseHTTP(header)
    		if err != nil {
    			return
    		}
    		if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    			return
    		}
    		opts.ServerSideEncryption = sse
    		return
    	}
    	if crypto.S3.IsRequested(header) || (metadata != nil && crypto.S3.IsEncrypted(metadata)) {
    		opts.ServerSideEncryption = encrypt.NewSSE()
    	}
    
    	return
    }
    
    // get ObjectOptions for GET calls from encryption headers
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

          )
    
        fun http2HeadersList(request: Request): List<Header> {
          val headers = request.headers
          val result = ArrayList<Header>(headers.size + 4)
          result.add(Header(TARGET_METHOD, request.method))
          result.add(Header(TARGET_PATH, RequestLine.requestPath(request.url)))
          val host = request.header("Host")
          if (host != null) {
            result.add(Header(TARGET_AUTHORITY, host)) // Optional.
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. docs/bucket/versioning/DESIGN.md

    | xlHeaderVersion | msgp uint                   | header version identifier
    | xlMetaVersion   | msgp uint                   | metadata version identifier
    | versions        | msgp int                    | Number of versions following
    | header_1        | msgp bin array              | Header of version 1
    | metadata_1      | msgp bin array              | Metadata of version 1
    | ...header_n     | msgp bin array              | Header of last version
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 17 15:43:14 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  10. docs/features/interceptors.md

    Symmetrically, interceptors can rewrite response headers and transform the response body. This is generally more dangerous than rewriting request headers because it may violate the webserver's expectations!
    
    If you're in a tricky situation and prepared to deal with the consequences, rewriting response headers is a powerful way to work around problems. For example, you can fix a server's misconfigured `Cache-Control` response header to enable better response caching:
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top