Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewChecksumHeader (0.06 sec)

  1. internal/hash/checksum.go

    		return ChecksumCRC64NVME
    	case "":
    		if full != 0 {
    			return ChecksumInvalid
    		}
    		return ChecksumNone
    	}
    	return ChecksumInvalid
    }
    
    // NewChecksumHeader returns a checksum type based on the algorithm string.
    func NewChecksumHeader(h http.Header) ChecksumType {
    	return NewChecksumType(h.Get(xhttp.AmzChecksumAlgo), h.Get(xhttp.AmzChecksumType))
    }
    
    // String returns the type as a string.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return true
    			}
    			return checkPreconditionsPUT(ctx, w, r, oi, opts)
    		}
    	}
    
    	checksumType := hash.NewChecksumHeader(r.Header)
    	if checksumType.Is(hash.ChecksumInvalid) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidChecksum), r.URL)
    		return
    	} else if checksumType.IsSet() && !checksumType.Is(hash.ChecksumTrailing) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  3. cmd/object-handlers.go

    		}
    
    		// Client can request that a different type of checksum is computed server-side for the
    		// destination object using the x-amz-checksum-algorithm header.
    		headerChecksumType := hash.NewChecksumHeader(r.Header)
    		if headerChecksumType.IsSet() {
    			dstOpts.WantServerSideChecksumType = headerChecksumType.Base()
    			srcInfo.Reader.AddServerSideChecksumHasher(headerChecksumType)
    			dstOpts.WantChecksum = nil
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top