@@ -370,6 +370,8 @@ following <a for=struct>items</a>: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
370370 <dd> A number.
371371 <dt> <dfn export for="response body info">content type</dfn> (default the empty string)
372372 <dd> An <a for=/>ASCII string</a> .
373+ <dt> <dfn export for="response body info">content encoding</dfn> (default the empty string)
374+ <dd> An <a for=/>ASCII string</a> .
373375</dl>
374376
375377<div algorithm>
@@ -1132,6 +1134,7 @@ a <a>byte-case-insensitive</a> match for one of
11321134 <li> `<code> Content-Language</code> `
11331135 <li> `<code> Content-Length</code> `
11341136 <li> `<code> Content-Type</code> `
1137+ <li> `<code> Content-Encoding</code> `
11351138 <li> `<code> Expires</code> `
11361139 <li> `<code> Last-Modified</code> `
11371140 <li> `<code> Pragma</code> `
@@ -1147,6 +1150,7 @@ is a <a>byte-case-insensitive</a> match for one of
11471150 <li> `<code> Accept-Language</code> `
11481151 <li> `<code> Content-Language</code> `
11491152 <li> `<code> Content-Type</code> `
1153+ <li> `<code> Content-Encoding</code> `
11501154</ul>
11511155
11521156<div algorithm>
@@ -3946,6 +3950,40 @@ Content-Type:
39463950</div>
39473951</div>
39483952
3953+ <h3 id=content-encoding>`<code>Content-Encoding</code>` header</h3>
3954+
3955+ <p> The `<code> Content-Encoding</code> ` header is largely defined in HTTP. Its processing model is
3956+ defined here as the model defined in HTTP is not compatible with web content. [[HTTP]]
3957+
3958+ <div algorithm>
3959+ <p> To <dfn export for="header list" lt="extract an encoding type|extracting an encoding type">
3960+ extract an encoding type</dfn> from a <a for=/>header list</a> <var> headers</var> , run these steps:
3961+
3962+ <ol>
3963+ <li><p> Let <var> values</var> be the result of
3964+ <a for="header list">getting, decoding, and splitting</a> `<code> Content-Encoding</code> ` from
3965+ <var> headers</var> .
3966+
3967+ <li><p> If <var> values</var> is null, then return null.
3968+
3969+ <li><p> Let <var> candidateValue</var> be null.
3970+
3971+ <li>
3972+ <p> <a for=list>For each</a> <var> value</var> of <var> values</var> :
3973+
3974+ <ol>
3975+ <li><p> If <var> candidateValue</var> is null, then set <var> candidateValue</var> to
3976+ <var> value</var> .
3977+
3978+ <li><p> Otherwise, if <var> value</var> is not <var> candidateValue</var> , return failure.
3979+ </ol>
3980+
3981+ <li><p> If <var> candidateValue</var> is the empty string or has a <a for=/>code point</a> that is
3982+ not an <a for=/>ASCII digit</a> , then return null.
3983+
3984+ <li><p> Return <var> candidateValue</var> , interpreted as a string.
3985+ </ol>
3986+ </div>
39493987
39503988<h3 id=x-content-type-options-header>`<code>X-Content-Type-Options</code>` header</h3>
39513989
@@ -9127,6 +9165,7 @@ Gavin Carothers,
91279165Glenn Maynard,
91289166Graham Klyne,
91299167Gregory Terzian,
9168+ Guohui Deng,
91309169Hal Lockhart,
91319170Hallvord R. M. Steen,
91329171Harris Hancock,
0 commit comments