Skip to content

Commit fd93fd1

Browse files
committed
Fixed build errors
1 parent 18affa8 commit fd93fd1

1 file changed

Lines changed: 26 additions & 19 deletions

File tree

fetch.bs

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6526,16 +6526,17 @@ run these steps:
65266526
<h3 id=http-network-compression-dictionary-fetch>HTTP-network compression-dictionary fetch</h3>
65276527

65286528
<div algorithm>
6529-
<p>To <dfn>HTTP-network compression-dictionary fetch</dfn>, given a <a for=/>fetch params</a>
6530-
<var>fetchParams</var>, an optional boolean <var>includeCredentials</var> (default false), and an
6531-
optional boolean <var>forceNewConnection</var> (default false), run these steps:
6529+
<p>To <dfn id=concept-http-network-compression-dictionary-fetch>HTTP-network compression-dictionary fetch</dfn>,
6530+
given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
6531+
<var>includeCredentials</var> (default false), and an optional boolean <var>forceNewConnection</var>
6532+
(default false), run these steps:
65326533

65336534
<ol>
65346535
<li><p>Let <var>request</var> be <var>fetchParams</var>'s <a for="fetch params">request</a>.
65356536

6536-
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>no-cors</code>", then return the result of
6537-
running <a>HTTP-network fetch</a> given <var>fetchParams</var>, <var>includeCredentials</var>, and
6538-
<var>forceNewConnection</var>.
6537+
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>no-cors</code>", then return the
6538+
result of running <a>HTTP-network fetch</a> given <var>fetchParams</var>,
6539+
<var>includeCredentials</var>, and <var>forceNewConnection</var>.
65396540

65406541
<li><p>If the user agent is configured to block cookies for <var>request</var>, then return the
65416542
result of running <a>HTTP-network fetch</a> given <var>fetchParams</var>,
@@ -6549,43 +6550,49 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
65496550
<var>forceNewConnection</var>.
65506551

65516552
<li><p>Let <var>bestMatch</var> be the result of finding the best matching dictionary in
6552-
<var>compressionDictionaryCache</var> for <var>request</var> as defined in [[!HTTP-COMPRESSION-DICTIONARIES]].
6553+
<var>compressionDictionaryCache</var> for <var>request</var> as defined in
6554+
[[!HTTP-COMPRESSION-DICTIONARIES]].
65536555

65546556
<li><p>If <var>bestMatch</var> is null, then return the result of running <a>HTTP-network fetch</a>
65556557
given <var>fetchParams</var>, <var>includeCredentials</var>, and <var>forceNewConnection</var>.
65566558

6557-
<li><p>Add the `<code>Available-Dictionary</code>` and `<code>Dictionary-ID</code>` (if applicable) headers to <var>request</var> using <var>bestMatch</var> as defined in [[!HTTP-COMPRESSION-DICTIONARIES]].
6559+
<li><p>Add the `<code>Available-Dictionary</code>` and `<code>Dictionary-ID</code>`
6560+
(if applicable) headers to <var>request</var> using <var>bestMatch</var> as defined in
6561+
[[!HTTP-COMPRESSION-DICTIONARIES]].
65586562

6559-
<li><p><a>Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcb</code>`) in <var>request</var>'s <a for=request>header list</a>.
6563+
<li><p><a for="header list">Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcb</code>`)
6564+
in <var>request</var>'s <a for=request>header list</a>.
65606565

6561-
<li><p><a>Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcz</code>`) in <var>request</var>'s <a for=request>header list</a>.
6566+
<li><p><a for="header list">Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcz</code>`)
6567+
in <var>request</var>'s <a for=request>header list</a>.
65626568

65636569
<li><p>Let <var>response</var> be the result of running <a>HTTP-network fetch</a> given
65646570
<var>fetchParams</var>, <var>includeCredentials</var>, and <var>forceNewConnection</var>.
65656571

65666572
<li><p>Let <var>codings</var> be the result of <a>extracting header list values</a> given
65676573
`<code>Content-Encoding</code>` and <var>response</var>'s <a for=response>header list</a>.
65686574

6569-
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`, then
6570-
return <var>response</var>.
6575+
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
6576+
then return <var>response</var>.
65716577

65726578
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>", then return a
65736579
<a>network error</a>.
65746580

6575-
<li><p>Let <var>availableDictionaryHash</var> be the result of <a>getting a structured field value</a>
6576-
given `<code>Available-Dictionary</code>`, "<code>bytestring</code>", and <var>request</var>'s
6577-
<a for=request>header list</a>.
6581+
<li><p>Let <var>availableDictionaryHash</var> be the result of
6582+
<a>getting a structured field value</a> given `<code>Available-Dictionary</code>`,
6583+
"<code>bytestring</code>", and <var>request</var>'s <a for=request>header list</a>.
65786584

6579-
<li><p>Let <var>newBody</var> be a new <a for=/>body</a> whose <a for=body>stream</a> is the result
6580-
of transforming <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a> with an
6581-
algorithm that verifies that the dictionary hash in the stream matches
6585+
<li><p>Let <var>newBody</var> be a new <a for=/>body</a> whose <a for=body>stream</a> is the
6586+
result of transforming <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a>
6587+
with an algorithm that verifies that the dictionary hash in the stream matches
65826588
<var>availableDictionaryHash</var> and decodes the rest of the stream with the applicable
65836589
algorithm as defined in [[!HTTP-COMPRESSION-DICTIONARIES]]. If verification or decoding fails,
65846590
the transformed stream must error.
65856591

65866592
<li><p>Set <var>response</var>'s <a for=response>body</a> to <var>newBody</var>.
65876593

6588-
<li><p><a>Delete</a> `<code>Content-Encoding</code>` from <var>response</var>'s <a for=response>header list</a>.
6594+
<li><p><a>Delete</a> `<code>Content-Encoding</code>` from <var>response</var>'s
6595+
<a for=response>header list</a>.
65896596

65906597
<li><p>Return <var>response</var>.
65916598
</ol>

0 commit comments

Comments
 (0)