- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,168 for headerKV (0.09 sec)
-
tests/test_security_api_key_header.py
response = client.get("/users/me", headers={"key": "secret"}) assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "APIKey"
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 1.9K bytes - Viewed (0) -
cmd/streaming-signature-v4.go
// Copy request. req := *r // Save authorization header. v4Auth := req.Header.Get(xhttp.Authorization) // Parse signature version '4' header. signV4Values, errCode := parseSignV4(v4Auth, globalSite.Region(), serviceS3) if errCode != ErrNone { return cred, "", "", time.Time{}, errCode }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 18.2K bytes - Viewed (0) -
cmd/object-multipart-handlers.go
} case crypto.S3: w.Header().Set(xhttp.AmzServerSideEncryption, xhttp.AmzEncryptionAES) etag, _ = DecryptETag(objectEncryptionKey, ObjectInfo{ETag: etag}) case crypto.SSEC: w.Header().Set(xhttp.AmzServerSideEncryptionCustomerAlgorithm, r.Header.Get(xhttp.AmzServerSideEncryptionCustomerAlgorithm)) w.Header().Set(xhttp.AmzServerSideEncryptionCustomerKeyMD5, r.Header.Get(xhttp.AmzServerSideEncryptionCustomerKeyMD5))
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 39.5K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt
headers = Headers.headersOf("content-type", "application/json"), ), ) server.enqueue( MockResponse( body = """ |data: hey | | """.trimMargin(), headers = Headers.headersOf("content-type", "text/event-stream"), ), )
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 03 07:51:20 UTC 2025 - 3.6K bytes - Viewed (0) -
cmd/http-tracer.go
Method: r.Method, RawQuery: redactLDAPPwd(r.URL.RawQuery), Client: handlers.GetSourceIP(r), Headers: reqHeaders, Path: reqPath, Body: reqRecorder.Data(), }, RespInfo: madmin.TraceResponseInfo{ Time: reqEndTime, Headers: respRecorder.Header().Clone(), StatusCode: respRecorder.StatusCode, Body: respRecorder.Body(), },
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Sep 24 17:13:00 UTC 2024 - 6K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
Request( url = "https://url-host.com:${server.port}/".toHttpUrl(), headers = headersOf("Host", "header-host"), ), ) val response = call.execute() assertThat(response.isSuccessful).isTrue() val recordedRequest = server.takeRequest() assertThat(recordedRequest.url.host).isEqualTo("header-host") // https://github.com/bcgit/bc-java/issues/1773
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6.3K bytes - Viewed (0) -
internal/hash/reader.go
// https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html // Returns ErrInvalidChecksum if a problem with the checksum is found. func (r *Reader) AddChecksumNoTrailer(headers http.Header, ignoreValue bool) error { cs, err := GetContentChecksum(headers) if err != nil { return ErrInvalidChecksum } if cs == nil { return nil } r.contentHash = *cs return r.AddNonTrailingChecksum(cs, ignoreValue) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jun 25 15:08:54 UTC 2025 - 11.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
// Mock getHeaderFields to return our headers Map<String, List<String>> allHeaders = headers != null ? new HashMap<>(headers) : new HashMap<>(); allHeaders.put(null, Collections.singletonList(statusLine)); // Status line when(conn.getHeaderFields()).thenReturn(allHeaders); // Mock individual header access by both string key and index if (headers != null) { // Mock by header nameRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt
/** Identifies which member in the ASN.1 schema the field holds. */ var tag: Long, /** * If the constructed bit is set it indicates that the value is composed of other values that have * their own headers. * * This value is encoded in bit 6 of the first byte of each value. * * ``` * 0bxx0xxxxx Primitive * 0bxx1xxxxx Constructed * ``` */ var constructed: Boolean,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
internal/bucket/encryption/bucket-sse-config.go
} // Apply applies the SSE bucket configuration on the given HTTP headers and // sets the specified SSE headers. // // Apply does not overwrite any existing SSE headers. Further, it will // set minimal SSE-KMS headers if autoEncrypt is true and the BucketSSEConfig // is nil. func (b *BucketSSEConfig) Apply(headers http.Header, opts ApplyOptions) { if crypto.Requested(headers) { return } if b == nil { if opts.AutoEncrypt {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Oct 25 00:44:15 UTC 2022 - 4.9K bytes - Viewed (0)