Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 149 for Etag (0.14 sec)

  1. cmd/api-response.go

    // generates CopyObjectResponse from etag and lastModified time.
    func generateCopyObjectResponse(etag string, lastModified time.Time) CopyObjectResponse {
    	return CopyObjectResponse{
    		ETag:         "\"" + etag + "\"",
    		LastModified: amztime.ISO8601Format(lastModified.UTC()),
    	}
    }
    
    // generates CopyObjectPartResponse from etag and lastModified time.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:19 UTC 2025
    - 35K bytes
    - Viewed (0)
  2. cmd/erasure-multipart-conditional_test.go

    		// This should fail even without quorum issues, but with quorum failure
    		// we can't verify the ETag at all.
    		opts := ObjectOptions{
    			UserDefined: map[string]string{
    				xhttp.IfMatch: "wrong-etag-12345",
    			},
    			HasIfMatch: true,
    			CheckPrecondFn: func(oi ObjectInfo) bool {
    				// Precondition fails if ETags don't match
    				return oi.ETag != "wrong-etag-12345"
    			},
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  3. cmd/erasure-multipart.go

    				PartNumber: part.PartNumber,
    				GotETag:    part.ETag,
    			}
    			return oi, invp
    		}
    		expPart := currentFI.Parts[partIdx]
    
    		// ensure that part ETag is canonicalized to strip off extraneous quotes
    		part.ETag = canonicalizeETag(part.ETag)
    		expETag := tryDecryptETag(objectEncryptionKey, expPart.ETag, kind == crypto.S3)
    		if expETag != part.ETag {
    			invp := InvalidPart{
    				PartNumber: part.PartNumber,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 47.1K bytes
    - Viewed (0)
  4. cmd/erasure-object-conditional_test.go

    		// Test Case 3: if-match with wrong ETag
    		// Even if the ETag doesn't match, we should still get read quorum error
    		// because we can't read the object to check the condition.
    		opts := ObjectOptions{
    			UserDefined: map[string]string{
    				xhttp.IfMatch: "wrong-etag",
    			},
    			CheckPrecondFn: func(oi ObjectInfo) bool {
    				// Precondition fails if ETag doesn't match
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. cmd/erasure-object.go

    		// as well as common modtime, if modtime is not possible
    		// verify if it has common "etag" at least.
    		if onlineMeta[i].IsValid() && onlineMeta[i].Erasure.Equal(fi.Erasure) {
    			ok := onlineMeta[i].ModTime.Equal(modTime)
    			if modTime.IsZero() || modTime.Equal(timeSentinel) {
    				ok = etag != "" && etag == fi.Metadata["etag"]
    			}
    			if ok {
    				continue
    			}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 80.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

        assertThat(invalidate.body.string()).isEqualTo("")
        assertThat(get(url).body.string()).isEqualTo("C")
      }
    
      @Test
      fun etag() {
        val conditionalRequest =
          assertConditionallyCached(
            MockResponse
              .Builder()
              .addHeader("ETag: v1")
              .build(),
          )
        assertThat(conditionalRequest.headers["If-None-Match"]).isEqualTo("v1")
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 03 17:41:45 UTC 2025
    - 116.8K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        call.cancel()
        assertFailsWith<IOException> {
          call.execute()
        }
        assertThat(server.requestCount).isEqualTo(0)
      }
    
      @Tag("Slowish")
      @Test
      fun cancelDuringHttpConnect() {
        cancelDuringConnect("http")
      }
    
      @Tag("Slowish")
      @Test
      fun cancelDuringHttpsConnect() {
        cancelDuringConnect("https")
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        enableCache()
        server.enqueue(
          MockResponse
            .Builder()
            .addHeader("ETag: v1")
            .body("abc")
            .build(),
        )
        server.enqueue(
          MockResponse
            .Builder()
            .code(HttpURLConnection.HTTP_OK)
            .addHeader("ETag: v2")
            .body("abd")
            .build(),
        )
        var call =
          client.newCallWithListener(
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/custom-response.md

    * `filename` - Si se establece, se incluirá en el response `Content-Disposition`.
    
    Los responses de archivos incluirán los headers apropiados `Content-Length`, `Last-Modified` y `ETag`.
    
    {* ../../docs_src/custom_response/tutorial009_py39.py hl[2,10] *}
    
    También puedes usar el parámetro `response_class`:
    
    {* ../../docs_src/custom_response/tutorial009b_py39.py hl[2,8,10] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/custom-response.md

    * `filename` - If set, this will be included in the response `Content-Disposition`.
    
    File responses will include appropriate `Content-Length`, `Last-Modified` and `ETag` headers.
    
    {* ../../docs_src/custom_response/tutorial009_py39.py hl[2,10] *}
    
    You can also use the `response_class` parameter:
    
    {* ../../docs_src/custom_response/tutorial009b_py39.py hl[2,8,10] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top