Add note COPY with conditional headers

Swift now supports Range header for COPY (or PUT with X-Copy-From)
to make a partial copied object. This patch adds the note to show
it obviously supported in Swift community.

Change-Id: I6bf28f0932c90e7b305cd61aabce4ed028ae691e
Partial-Bug: #1532126
This commit is contained in:
Kota Tsuyuzaki 2016-01-08 01:29:11 -08:00
parent 6786cdf036
commit b35f3c90bd

@ -416,6 +416,11 @@ class BaseObjectController(Controller):
This method handles copying objects based on values set in the headers This method handles copying objects based on values set in the headers
'X-Copy-From' and 'X-Copy-From-Account' 'X-Copy-From' and 'X-Copy-From-Account'
Note that if the incomming request has some conditional headers (e.g.
'Range', 'If-Match'), *source* object will be evaluated for these
headers. i.e. if PUT with both 'X-Copy-From' and 'Range', Swift will
make a partial copy as a new object.
This method was added as part of the refactoring of the PUT method and This method was added as part of the refactoring of the PUT method and
the functionality is expected to be moved to middleware the functionality is expected to be moved to middleware
""" """