From 840ec25143941b8ff8748bee1d5eb77bdf2e68ce Mon Sep 17 00:00:00 2001 From: Diane Fleming Date: Mon, 23 Dec 2013 14:30:41 -0600 Subject: [PATCH] Document range header for objects Partial-Bug: #1263759 Change-Id: I3d8c4e3f2995859edced6f519da46a811b0d580a author: diane fleming --- .../section_object-api-storage-object-svc.xml | 53 ++++++++++++------- 1 file changed, 35 insertions(+), 18 deletions(-) diff --git a/openstack-object-storage-dev/section_object-api-storage-object-svc.xml b/openstack-object-storage-dev/section_object-api-storage-object-svc.xml index 7c70766..fe066d3 100644 --- a/openstack-object-storage-dev/section_object-api-storage-object-svc.xml +++ b/openstack-object-storage-dev/section_object-api-storage-object-svc.xml @@ -80,15 +80,15 @@ X-Newest Set the optional X-newest header to - True in HEAD and GET requests to have - Object Storage return the latest version of the object. - If set to True, Object Storage queries all - replicas to return the most recent one. Without this header, - Object Storage responds faster after it finds one valid replica. - Because setting this header to True is more - expensive for the back end, use it only when it is - absolutely needed. - + True in HEAD and GET requests to + have Object Storage return the latest version of + the object. If set to True, Object + Storage queries all replicas to return the most + recent one. Without this header, Object Storage + responds faster after it finds one valid replica. + Because setting this header to True + is more expensive for the back end, use it only + when it is absolutely needed. @@ -139,8 +139,8 @@ The following forms of the header specify the following ranges of data: - - + + Header @@ -151,7 +151,24 @@ Range: bytes=-5 - The last 5 bytes. + The last five bytes. + + + + Range: + bytes=10-14 + The five bytes of data after a 10-byte + offset. + + + Range: + bytes=10-14,-5 + A multi-part response that contains the five bytes of data after + a 10-byte offset and the last five + bytes. + The Content-Type of the + response is then + multipart/byteranges. @@ -164,21 +181,21 @@ Range: bytes=2-2 - Byte 2, the third byte of the - data. + Byte 2, which is the third byte of the data. Range: bytes=6- - Byte 6 byte and after. + Byte 6 and after. Range: bytes=1-3,2-5 - Bytes 1 to 3 inclusive, and bytes 2 to 5 + A multi-part response that contains + bytes 1 to 3 inclusive, and bytes 2 to 5 inclusive. The Content-Type of the response is then @@ -334,8 +351,8 @@ object as the source, the new object is a "normal" object (not segmented). If the total size of the source segment objects exceeds 5 GB, the © - operation fails. However, as explained later, you - can make a duplicate of the manifest object. This new + operation fails. However, as explained later, you can + make a duplicate of the manifest object. This new object can be larger than 5 GB. The manifest object type are: