Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for HasIfMatch (0.06 sec)

  1. cmd/erasure-multipart.go

    		// if object doesn't exist and not a replication request return error for If-Match conditional requests
    		// If-None-Match should be allowed to proceed for non-existent objects
    		if err != nil && !opts.ReplicationRequest && opts.HasIfMatch && (isErrObjectNotFound(err) || isErrVersionNotFound(err)) {
    			return nil, err
    		}
    	}
    
    	userDefined := cloneMSS(opts.UserDefined)
    	if opts.PreserveETag != "" {
    		userDefined["etag"] = opts.PreserveETag
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    	opts, err := putOptsFromReq(ctx, r, bucket, object, metadata)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if r.Header.Get(xhttp.IfMatch) != "" {
    		opts.HasIfMatch = true
    	}
    	if opts.PreserveETag != "" ||
    		r.Header.Get(xhttp.IfMatch) != "" ||
    		r.Header.Get(xhttp.IfNoneMatch) != "" {
    		opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  3. cmd/object-api-interface.go

    	PreserveETag                        string    // preserves this etag during a PUT call.
    	NoLock                              bool      // indicates to lower layers if the caller is expecting to hold locks.
    	HasIfMatch                          bool      // indicates if the request has If-Match header
    	ProxyRequest                        bool      // only set for GET/HEAD in active-active replication scenario
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    		// if object doesn't exist and not a replication request return error for If-Match conditional requests
    		// If-None-Match should be allowed to proceed for non-existent objects
    		if err != nil && !opts.ReplicationRequest && opts.HasIfMatch && (isErrObjectNotFound(err) || isErrVersionNotFound(err)) {
    			return objInfo, err
    		}
    	}
    
    	// Validate input data size and it can never be less than -1.
    	if data.Size() < -1 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 80.4K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    		}
    		opts.WantChecksum = hashReader.Checksum()
    	}
    
    	rawReader := hashReader
    	pReader := NewPutObjReader(rawReader)
    	opts.IndexCB = idxCb
    
    	if r.Header.Get(xhttp.IfMatch) != "" {
    		opts.HasIfMatch = true
    	}
    	if opts.PreserveETag != "" ||
    		r.Header.Get(xhttp.IfMatch) != "" ||
    		r.Header.Get(xhttp.IfNoneMatch) != "" {
    		opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top