To save bandwidth, you can compress object data, an annotation, or an ACL in gzip format before sending it to HCP. In the PUT request, you tell HCP that data is compressed so that HCP knows to decompress the data before storing it.
Similarly, in a GET request, you can tell HCP to return object data, an annotation, or an ACL in compressed format. In this case, you need to decompress the returned data yourself.
HCP supports only the gzip algorithm for compressed data transmission.
You tell HCP that the request body is compressed by including a Content-Encoding header with the value gzip in the HTTP PUT request. In this case, HCP uses the gzip algorithm to decompress the received data.
You tell HCP to send a compressed response by specifying an Accept-Encoding header in the HTTP GET request. If the header specifies gzip, a list of compression algorithms that includes gzip, or *, HCP uses the gzip algorithm to compress the data before sending it.
For examples of sending and receiving objects in compressed format, see Working with objects and versions.
© 2016 Hitachi Data Systems Corporation. All rights reserved.