Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ParseHeader (0.07 sec)

  1. cmd/object-handlers-common.go

    	// since the specified time otherwise return 412 (precondition failed).
    	ifModifiedSinceHeader := r.Header.Get(xhttp.AmzCopySourceIfModifiedSince)
    	if ifModifiedSinceHeader != "" {
    		if givenTime, err := amztime.ParseHeader(ifModifiedSinceHeader); err == nil {
    			if !ifModifiedSince(objInfo.ModTime, givenTime) {
    				// If the object is not modified since the specified time.
    				writeHeaders()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. cmd/erasure-metadata.go

    		NumVersions:      fi.NumVersions,
    		SuccessorModTime: fi.SuccessorModTime,
    		CacheControl:     fi.Metadata["cache-control"],
    	}
    
    	if exp, ok := fi.Metadata["expires"]; ok {
    		if t, err := amztime.ParseHeader(exp); err == nil {
    			objInfo.Expires = t.UTC()
    		}
    	}
    
    	// Extract etag from metadata.
    	objInfo.ETag = extractETag(fi.Metadata)
    
    	// Add user tags to the object info
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle.go

    			return restoreObjStatus{}, errRestoreHDRMalformed
    		}
    		if strings.TrimSpace(expiryTokens[0]) != "expiry-date" {
    			return restoreObjStatus{}, errRestoreHDRMalformed
    		}
    		expiry, err := amztime.ParseHeader(strings.Trim(expiryTokens[1], `"`))
    		if err != nil {
    			return restoreObjStatus{}, errRestoreHDRMalformed
    		}
    		return completedRestoreObj(expiry), nil
    	}
    	return restoreObjStatus{}, errRestoreHDRMalformed
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top