Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for generateCopyObjectResponse (0.13 sec)

  1. cmd/api-response.go

    	return data
    }
    
    type metaCheckFn = func(name string, action policy.Action) (s3Err APIErrorCode)
    
    // generates CopyObjectResponse from etag and lastModified time.
    func generateCopyObjectResponse(etag string, lastModified time.Time) CopyObjectResponse {
    	return CopyObjectResponse{
    		ETag:         "\"" + etag + "\"",
    		LastModified: amztime.ISO8601Format(lastModified.UTC()),
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	}
    
    	origETag := objInfo.ETag
    	objInfo.ETag = getDecryptedETag(r.Header, objInfo, false)
    	response := generateCopyObjectResponse(objInfo.ETag, objInfo.ModTime)
    	encodedSuccessResponse := encodeResponse(response)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top