Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IfNoneMatch (0.26 sec)

  1. internal/config/cache/remote.go

    // for validation during GET/HEAD object requests.
    type CondCheck struct {
    	ObjectInfo
    	IfMatch           string     `json:"ifMatch,omitempty" msg:",omitempty"`
    	IfNoneMatch       string     `json:"ifNoneMatch,omitempty" msg:",omitempty"`
    	IfModifiedSince   *time.Time `json:"ifModSince,omitempty" msg:",omitempty"`
    	IfUnModifiedSince *time.Time `json:"ifUnmodSince,omitempty" msg:",omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. internal/config/cache/remote_gen.go

    				return
    			}
    		case "IfMatch":
    			z.IfMatch, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "IfMatch")
    				return
    			}
    		case "IfNoneMatch":
    			z.IfNoneMatch, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "IfNoneMatch")
    				return
    			}
    		case "IfModifiedSince":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "IfModifiedSince")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. cmd/object-handlers-common.go

    		}
    	}
    
    	// If-None-Match : Return the object only if its entity tag (ETag) is different from the
    	// one specified otherwise, return a 304 (not modified).
    	ifNoneMatchETagHeader := r.Header.Get(xhttp.IfNoneMatch)
    	if ifNoneMatchETagHeader != "" {
    		if isETagEqual(objInfo.ETag, ifNoneMatchETagHeader) {
    			// If the object ETag matches with the specified ETag.
    			writeHeaders()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. internal/http/headers.go

    	XCacheLookup = "X-Cache-Lookup"
    )
    
    // Standard S3 HTTP request constants
    const (
    	IfModifiedSince   = "If-Modified-Since"
    	IfUnmodifiedSince = "If-Unmodified-Since"
    	IfMatch           = "If-Match"
    	IfNoneMatch       = "If-None-Match"
    
    	// Request tags used in GetObjectAttributes
    	Checksum     = "Checksum"
    	StorageClass = "StorageClass"
    	ObjectSize   = "ObjectSize"
    	ObjectParts  = "ObjectParts"
    
    	// S3 storage class
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

        // Seed the cache.
        val url = server.url("/")
        assertThat(get(url).body.string()).isEqualTo("A")
        val ifNoneMatch = AtomicReference<String?>()
        client =
          client.newBuilder()
            .addNetworkInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                ifNoneMatch.compareAndSet(null, chain.request().header("If-None-Match"))
                chain.proceed(chain.request())
              },
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if opts.PreserveETag != "" ||
    		r.Header.Get(xhttp.IfMatch) != "" ||
    		r.Header.Get(xhttp.IfNoneMatch) != "" {
    		opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    			if _, err := DecryptObjectInfo(&oi, r); err != nil {
    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	opts.IndexCB = idxCb
    
    	if opts.PreserveETag != "" ||
    		r.Header.Get(xhttp.IfMatch) != "" ||
    		r.Header.Get(xhttp.IfNoneMatch) != "" {
    		opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    			if _, err := DecryptObjectInfo(&oi, r); err != nil {
    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top