object-api/v1/section_object-api-compress...

21 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
xml:id="file-compression">
<title>Use Content-Encoding metadata</title>
<para>When you create an object or update its metadata, you can
optionally set the <literal>Content-Encoding</literal>
metadata. This metadata enables you to indicate that the
object content is compressed without losing the identity of
the underlying media type (<literal>Content-Type</literal>) of
the file, such as a video.</para>
<example>
<title>Content-Encoding header request: HTTP</title>
<para>This example assigns an attachment type to the
<literal>Content-Encoding</literal> header that
indicates how the file is downloaded:</para>
<programlisting><xi:include href="samples/content-encoding-header-req.txt" parse="text"/></programlisting>
</example>
</section>