Skip to content

Commit ca8175e

Browse files
committed
treat Last-Event-ID and Client-Hints headers as simple headers
- Last-Event-ID is defined in the HTML spec as a utf-8 string, hence we don't place any restrictions on its value - Each Client Hints header has a BNF grammar that should be validated by the user agent; the header is defined as simple if the name of the header matches one of CH header names, and its value conforms to the defined grammar Closes: - whatwg#52 - httpwg/http-extensions#141
1 parent 00356dd commit ca8175e

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

Overview.src.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,23 @@ <h4 id=terminology-headers>Headers</h4>
336336
<hr>
337337

338338
<p>A <dfn>simple header</dfn> is a <span title=concept-header>header</span> whose
339-
<span title=concept-header-name>name</span> is `<code title>Accept</code>`,
340-
`<code title>Accept-Language</code>`, or `<code title>Content-Language</code>`, or whose
341-
<span title=concept-header-name>name</span> is `<code title>Content-Type</code>` and
342-
<span title=concept-header-value>value</span>, <span title=concept-header-parse>once parsed</span>,
343-
has a MIME type (ignoring parameters) that is
344-
`<code title>application/x-www-form-urlencoded</code>`, `<code title>multipart/form-data</code>`, or
345-
`<code title>text/plain</code>`.
339+
<span title=concept-header-name>name</span> is one of
340+
341+
<ul class=brief>
342+
<li>`<code title>Accept</code>`
343+
<li>`<code title>Accept-Language</code>`
344+
<li>`<code title>Content-Language</code>`
345+
<li>`<code title>Content-Type</code>` and whose <span title=concept-header-value>value</span>,
346+
<span title=concept-header-parse>once parsed</span>, has a MIME type (ignoring parameters)
347+
that is `<code title>application/x-www-form-urlencoded</code>`,
348+
`<code title>multipart/form-data</code>`, or `<code title>text/plain</code>`
349+
<li>`<code title><a href=https://html.spec.whatwg.org/multipage/comms.html#last-event-id>Last-Event-ID</a></code>`
350+
<li>`<code title><a href=http://httpwg.org/http-extensions/client-hints.html#the-dpr-client-hint>DPR</a></code>`,
351+
`<code title><a href=http://httpwg.org/http-extensions/client-hints.html#the-downlink-client-hint>Downlink</a></code>`,
352+
`<code title><a href=http://httpwg.org/http-extensions/client-hints.html#the-save-data-hint>Save-Data</a></code>`,
353+
`<code title><a href=http://httpwg.org/http-extensions/client-hints.html#the-viewport-width-client-hint>Viewport-Width</a></code>`, or
354+
`<code title><a href=http://httpwg.org/http-extensions/client-hints.html#the-width-client-hint>Width</a></code>`, and whose value, once parsed, is not a failure.
355+
</ul>
346356
<!-- XXX * needs better xref
347357
* ignoring parameters has been the standard for a long time now
348358
* interesting test: "Content-Type: text/plain;" -->

0 commit comments

Comments
 (0)