<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.6.6 (Ruby 3.0.4) -->
<?rfc tocindent="yes"?>
<?rfc strict="yes"?>
<?rfc compact="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-httpbis-retrofit-01" category="std" consensus="true" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.12.4 -->
  <front>
    <title abbrev="Retrofit Structured Fields">Retrofit Structured Fields for HTTP</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-retrofit-01"/>
    <author initials="M." surname="Nottingham" fullname="Mark Nottingham">
      <organization/>
      <address>
        <postal>
          <postalLine>Prahran</postalLine>
          <postalLine>Australia</postalLine>
        </postal>
        <email>mnot@mnot.net</email>
        <uri>https://www.mnot.net/</uri>
      </address>
    </author>
    <date/>
    <keyword>structured fields</keyword>
    <keyword>http</keyword>
    <abstract>
      <t>This specification defines how a selection of existing HTTP fields can be handled as Structured Fields.</t>
    </abstract>
    <note removeInRFC="true">
      <name>About This Document</name>
      <t>
        Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-ietf-httpbis-retrofit/"/>.
      </t>
      <t>
        Discussion of this document takes place on the
        HTTP Working Group mailing list (<eref target="mailto:ietf-http-wg@w3.org"/>),
        which is archived at <eref target="https://lists.w3.org/Archives/Public/ietf-http-wg/"/>.
        Working Group information can be found at <eref target="https://httpwg.org/"/>.
      </t>
      <t>Source for this draft and an issue tracker can be found at
        <eref target="https://github.com/httpwg/http-extensions/labels/retrofit"/>.</t>
    </note>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>Structured Field Values for HTTP <xref target="STRUCTURED-FIELDS"/> introduced a data model with associated parsing and serialization algorithms for use by new HTTP field values. Header fields that are defined as Structured Fields can realise a number of benefits, including:</t>
      <ul spacing="normal">
        <li>Improved interoperability and security: precisely defined parsing and serialisation algorithms are typically not available for fields defined with just ABNF and/or prose.</li>
        <li>Reuse of common implementations: many parsers for other fields are specific to a single field or a small family of fields</li>
        <li>Canonical form: because a deterministic serialisation algorithm is defined for each type, Structure Fields have a canonical representation</li>
        <li>Enhanced API support: a regular data model makes it easier to expose field values as a native data structure in implementations</li>
        <li>Alternative serialisations: While <xref target="STRUCTURED-FIELDS"/> defines a textual serialisation of that data model, other, more efficient serialisations of the underlying data model are also possible.</li>
      </ul>
      <t>However, a field needs to be defined as a Structured Field for these benefits to be realised. Many existing fields are not, making up the bulk of header and trailer fields seen in HTTP traffic on the internet.</t>
      <t>This specification defines how a selection of existing HTTP fields can be handled as Structured Fields, so that these benefits can be realised -- thereby making them Retrofit Structured Fields.</t>
      <t>It does so using two techniques. <xref target="compatible"/> lists compatible fields -- those that can be handled as if they were Structured Fields due to the similarity of their defined syntax to that in Structured Fields. <xref target="mapped"/> lists mapped fields -- those whose syntax needs to be transformed into an underlying data model which is then mapped into that defined by Structured Fields.</t>
      <t>While implementations can parse and serialise compatible fields as Structured Fields subject to the caveats in <xref target="compatible"/>, a sender cannot generate mapped fields from <xref target="mapped"/> and expect them to be understood and acted upon by the recipient without prior negotiation. This specification does not define such a mechanism.</t>
      <section anchor="notational-conventions">
        <name>Notational Conventions</name>
        <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL
NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>
      </section>
    </section>
    <section anchor="compatible">
      <name>Compatible Fields</name>
      <t>The HTTP fields listed in <xref target="compatible-fields"/> can usually have their values handled as Structured Fields according to the listed parsing and serialisation algorithms in <xref target="STRUCTURED-FIELDS"/>, subject to the listed caveats.</t>
      <t>The listed types are chosen for compatibility with the defined syntax of the field as well as with actual internet traffic. However, not all instances of these fields will successfully parse. This might be because the field value is clearly invalid, or it might be because it is valid but not parseable as a Structured Field.</t>
      <t>An application using this specification will need to consider how to handle such field values. Depending on its requirements, it might be advisable to reject such values, treat them as opaque strings, or attempt to recover a structured value from them in an ad hoc fashion.</t>
      <table anchor="compatible-fields">
        <thead>
          <tr>
            <th align="left">Field Name</th>
            <th align="left">Structured Type</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">Accept</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Accept-Encoding</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Accept-Language</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Accept-Patch</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Accept-Post</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Accept-Ranges</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Allow-Credentials</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Allow-Headers</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Allow-Methods</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Allow-Origin</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Expose-Headers</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Max-Age</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Request-Headers</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Access-Control-Request-Method</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Age</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Allow</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">ALPN</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Alt-Svc</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Alt-Used</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Cache-Control</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">CDN-Loop</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Clear-Site-Data</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Connection</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Content-Encoding</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Content-Language</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Content-Length</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Content-Type</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Cross-Origin-Resource-Policy</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Expect</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Expect-CT</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Forwarded</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Host</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Keep-Alive</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Max-Forwards</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Origin</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Pragma</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Prefer</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Preference-Applied</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Retry-After</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Sec-WebSocket-Extensions</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Sec-WebSocket-Protocol</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Sec-WebSocket-Version</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Server-Timing</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Surrogate-Control</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">TE</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Timing-Allow-Origin</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Trailer</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Transfer-Encoding</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Vary</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">X-Content-Type-Options</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">X-Frame-Options</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">X-XSS-Protection</td>
            <td align="left">List</td>
          </tr>
        </tbody>
      </table>
      <t>Note the following caveats regarding compatibility:</t>
      <dl>
        <dt>Parameter and Dictionary keys:</dt>
        <dd>
          <t>HTTP parameter names are case-insensitive (per <xref section="5.6.6" sectionFormat="of" target="HTTP"/>), but Structured Fields require them to be all-lowercase. Although the vast majority of parameters seen in typical traffic are all-lowercase, compatibility can be improved by force-lowercasing parameters when encountered.
Likewise, many Dictionary-based fields (e.g., Cache-Control, Expect-CT, Pragma, Prefer, Preference-Applied, Surrogate-Control) have case-insensitive keys, and compatibility can be improved by force-lowercasing them.</t>
        </dd>
        <dt>Parameter delimitation:</dt>
        <dd>
          <t>The parameters rule in HTTP (see <xref section="5.6.6" sectionFormat="of" target="HTTP"/>) allows whitespace before the ";" delimiter, but Structured Fields does not. Compatibility can be improved by allowing such whitespace.</t>
        </dd>
        <dt>String quoting:</dt>
        <dd>
          <t><xref section="5.6.4" sectionFormat="of" target="HTTP"/> allows backslash-escaping most characters in quoted strings, whereas Structured Field Strings only escapes "" and DQUOTE. Compatibility can be improved by unescaping other characters before processing as Strings.</t>
        </dd>
        <dt>Token limitations:</dt>
        <dd>
          <t>In Structured Fields, tokens are required to begin with an alphabetic character or "*", whereas HTTP tokens allow a wider range of characters. This prevents use of mapped values that begin with one of these characters. For example, media types, field names, methods, range-units, character and transfer codings that begin with a number or special character other than "*" might be valid HTTP protocol elements, but will not be able to be parsed as Structured Field Tokens.</t>
        </dd>
        <dt>Integer limitations:</dt>
        <dd>
          <t>Structured Fields Integers can have at most 15 digits; larger values will not be able to be represented in them.</t>
        </dd>
        <dt>IPv6 Literals:</dt>
        <dd>
          <t>Fields whose values can contain IPv6 literal addresses (such as CDN-Loop, Host, and Origin) are not compatible when those values are parsed as Structured Fields Tokens, because the brackets used to delimit them are not allowed in Tokens.</t>
        </dd>
        <dt>Empty Field Values:</dt>
        <dd>
          <t>Empty and whitespace-only field values are considered errors in Structured Fields. For compatible fields, an empty field indicates that the field should be silently ignored.</t>
        </dd>
        <dt>Alt-Svc:</dt>
        <dd>
          <t>Some ALPN tokens (e.g., <tt>h3-Q43</tt>) do not conform to key's syntax. Since the final version of HTTP/3 uses the <tt>h3</tt> token, this shouldn't be a long-term issue, although future tokens may again violate this assumption.</t>
        </dd>
        <dt>Content-Length:</dt>
        <dd>
          <t>Content-Length is defined as a List because it is not uncommon for implementations to mistakenly send multiple values. See <xref section="8.6" sectionFormat="of" target="HTTP"/> for handling requirements.</t>
        </dd>
        <dt>Retry-After:</dt>
        <dd>
          <t>Only the delta-seconds form of Retry-After is supported; a Retry-After value containing a http-date will need to be either converted into delta-seconds or represented as a raw value.</t>
        </dd>
      </dl>
    </section>
    <section anchor="mapped">
      <name>Mapped Fields</name>
      <t>Some HTTP fields can have their values represented in Structured Fields by mapping them into its data types and then serialising the result using an alternative field name.</t>
      <t>For example, the Date HTTP header field carries a string representing a date:</t>
      <sourcecode type="http-message"><![CDATA[
Date: Sun, 06 Nov 1994 08:49:37 GMT
]]></sourcecode>
      <t>Its value is more efficiently represented as an integer number of delta seconds from the Unix epoch (00:00:00 UTC on 1 January 1970, minus leap seconds). Thus, the example above would be mapped as:</t>
      <sourcecode type="http-message"><![CDATA[
SF-Date: 784072177
]]></sourcecode>
      <t>As in <xref target="compatible"/>, these fields are unable to represent values that are not parseable, and so an application using this specification will need to how to support such values. Typically, handling them using the original field name is sufficient.</t>
      <t>Each field name listed below indicates a replacement field name and a means of mapping its original value into a Structured Field.</t>
      <section anchor="urls">
        <name>URLs</name>
        <t>The field names in <xref target="url-fields"/> (paired with their mapped field names) have values that can be represented as Structured Fields by considering the original field's value as a string.</t>
        <table anchor="url-fields">
          <thead>
            <tr>
              <th align="left">Field Name</th>
              <th align="left">Mapped Field Name</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">Content-Location</td>
              <td align="left">SF-Content-Location</td>
            </tr>
            <tr>
              <td align="left">Location</td>
              <td align="left">SF-Location</td>
            </tr>
            <tr>
              <td align="left">Referer</td>
              <td align="left">SF-Referer</td>
            </tr>
          </tbody>
        </table>
        <t>For example, a Location field could be represented as:</t>
        <sourcecode type="http-message"><![CDATA[
SF-Location: "https://example.com/foo"
]]></sourcecode>
      </section>
      <section anchor="dates">
        <name>Dates</name>
        <t>The field names in <xref target="date-fields"/> (paired with their mapped field names) have values that can be represented as Structured Fields by parsing their payload according to <xref section="5.6.7" sectionFormat="of" target="HTTP"/> and representing the result as an integer number of seconds delta from the Unix Epoch (00:00:00 UTC on 1 January 1970, minus leap seconds).</t>
        <table anchor="date-fields">
          <thead>
            <tr>
              <th align="left">Field Name</th>
              <th align="left">Mapped Field Name</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">Date</td>
              <td align="left">SF-Date</td>
            </tr>
            <tr>
              <td align="left">Expires</td>
              <td align="left">SF-Expires</td>
            </tr>
            <tr>
              <td align="left">If-Modified-Since</td>
              <td align="left">SF-IMS</td>
            </tr>
            <tr>
              <td align="left">If-Unmodified-Since</td>
              <td align="left">SF-IUS</td>
            </tr>
            <tr>
              <td align="left">Last-Modified</td>
              <td align="left">SF-LM</td>
            </tr>
          </tbody>
        </table>
        <t>For example, an Expires field could be represented as:</t>
        <sourcecode type="http-message"><![CDATA[
SF-Expires: 1571965240
]]></sourcecode>
      </section>
      <section anchor="etags">
        <name>ETags</name>
        <t>The field value of the ETag header field can be represented as a String Structured Field by representing the entity-tag as a string, and the weakness flag as a boolean "w" parameter on it, where true indicates that the entity-tag is weak; if 0 or unset, the entity-tag is strong.</t>
        <t>For example:</t>
        <sourcecode type="http-message"><![CDATA[
SF-ETag: "abcdef"; w=?1
]]></sourcecode>
        <t>If-None-Match's field value can be represented as SF-INM, which is a List of the structure described above.</t>
        <t>For example:</t>
        <sourcecode type="http-message"><![CDATA[
SF-INM: "abcdef"; w=?1, "ghijkl"
]]></sourcecode>
      </section>
      <section anchor="links">
        <name>Links</name>
        <t>The field value of the Link header field <xref target="RFC8288"/> can be represented in the SF-Link List Structured Field by representing the URI-Reference as a string, and link-param as parameters.</t>
        <t>For example:</t>
        <sourcecode type="http-message"><![CDATA[
SF-Link: "/terms"; rel="copyright"; anchor="#foo"
]]></sourcecode>
      </section>
      <section anchor="cookies">
        <name>Cookies</name>
        <t>The field values of the Cookie and Set-Cookie fields <xref target="RFC6265"/> can be represented in the SF-Cookie Structured Field (a List) and SF-Set-Cookie Structured Field (a Dictionary), respectively.</t>
        <t>In each case, cookie names are serialized as tokens, whereas their values are serialised as Strings, unless they can be represented accurately and unambiguously using the textual representation of another structured types (e.g., an Integer or Decimal).</t>
        <t>Set-Cookie parameters map to parameters on the appropriate SF-Set-Cookie member, with the parameter name being forced to lowercase. Set-Cookie parameter values are Strings unless a specific type is defined. This specification defines the parameter types in <xref target="cookie-params"/>.</t>
        <table anchor="cookie-params">
          <thead>
            <tr>
              <th align="left">Parameter Name</th>
              <th align="left">Structured Type</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left">Max-Age</td>
              <td align="left">Integer</td>
            </tr>
            <tr>
              <td align="left">Secure</td>
              <td align="left">Boolean</td>
            </tr>
            <tr>
              <td align="left">HttpOnly</td>
              <td align="left">Boolean</td>
            </tr>
            <tr>
              <td align="left">SameSite</td>
              <td align="left">Token</td>
            </tr>
          </tbody>
        </table>
        <t>Note that cookies in both fields are separated by commas, not semicolons, and multiple cookies can appear in each field.</t>
        <t>For example:</t>
        <sourcecode type="http-message"><![CDATA[
SF-Set-Cookie: lang=en-US; expires="Wed, 09 Jun 2021 10:18:14 GMT";
               samesite=Strict
SF-Cookie: SID=31d4d96e407aad42, lang=en-US
]]></sourcecode>
      </section>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>Please add the following note to the "Hypertext Transfer Protocol (HTTP) Field Name Registry":</t>
      <ul empty="true">
        <li>
          <t>The "Structured Type" column indicates the type of the field (per RFC8941), if any, and may be
"Dictionary", "List" or "Item". A prefix of "*" indicates that it is a retrofit type (i.e., not
natively Structured); see [this specification].</t>
          <t>Note that field names beginning with characters other than ALPHA or "*" will not be able to be
represented as a Structured Fields Token, and therefore may be incompatible with being mapped into
fields that refer to it; see [this specification].</t>
        </li>
      </ul>
      <t>Then, add a new column, "Structured Type", with the values from <xref target="compatible"/> assigned to the nominated registrations, prefixing each with "*" to indicate that it is a retrofit type.</t>
      <t>Then, add the field names in <xref target="new-fields"/>, with the corresponding Structured Type as indicated, a status of "permanent" and referring to this document.</t>
      <table anchor="new-fields">
        <thead>
          <tr>
            <th align="left">Field Name</th>
            <th align="left">Structured Type</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">SF-Content-Location</td>
            <td align="left">String</td>
          </tr>
          <tr>
            <td align="left">SF-Location</td>
            <td align="left">String</td>
          </tr>
          <tr>
            <td align="left">SF-Referer</td>
            <td align="left">String</td>
          </tr>
          <tr>
            <td align="left">SF-Date</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">SF-Expires</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">SF-IMS</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">SF-IUS</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">SF-LM</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">SF-ETag</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">SF-INM</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">SF-Link</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">SF-Set-Cookie</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">SF-Cookie</td>
            <td align="left">List</td>
          </tr>
        </tbody>
      </table>
      <t>Finally, add the indicated structured type for each existing registry entry below:</t>
      <table anchor="existing-fields">
        <thead>
          <tr>
            <th align="left">Field Name</th>
            <th align="left">Structured Type</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">Accept-CH</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">Cache-Status</td>
            <td align="left">List</td>
          </tr>
          <tr>
            <td align="left">CDN-Cache-Control</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Cross-Origin-Opener-Policy</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Cross-Origin-Opener-Policy-Report-Only</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Cross-Origin-Embedder-Policy</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Cross-Origin-Embedder-Policy-Report-Only</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Origin-Agent-Cluster</td>
            <td align="left">Item</td>
          </tr>
          <tr>
            <td align="left">Priority</td>
            <td align="left">Dictionary</td>
          </tr>
          <tr>
            <td align="left">Proxy-Status</td>
            <td align="left">List</td>
          </tr>
        </tbody>
      </table>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t><xref target="compatible"/> identifies existing HTTP fields that can be parsed and serialised with the algorithms defined in <xref target="STRUCTURED-FIELDS"/>. Variances from other implementations might be exploitable, particularly if they allow an attacker to target one implementation in a chain (e.g., an intermediary). However, given the considerable variance in parsers already deployed, convergence towards a single parsing algorithm is likely to have a net security benefit in the longer term.</t>
      <t><xref target="mapped"/> defines alternative representations of existing fields. Because downstream consumers might interpret the message differently based upon whether they recognise the alternative representation, implementations are prohibited from generating such fields unless they have negotiated support for them with their peer. This specification does not define such a mechanism, but any such definition needs to consider the implications of doing so carefully.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>Normative References</name>
      <reference anchor="RFC2119">
        <front>
          <title>Key words for use in RFCs to Indicate Requirement Levels</title>
          <author fullname="S. Bradner" initials="S." surname="Bradner">
            <organization/>
          </author>
          <date month="March" year="1997"/>
          <abstract>
            <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="2119"/>
        <seriesInfo name="DOI" value="10.17487/RFC2119"/>
      </reference>
      <reference anchor="HTTP">
        <front>
          <title>HTTP Semantics</title>
          <author fullname="Roy T. Fielding">
            <organization>Adobe</organization>
          </author>
          <author fullname="Mark Nottingham">
            <organization>Fastly</organization>
          </author>
          <author fullname="Julian Reschke">
            <organization>greenbytes GmbH</organization>
          </author>
          <date day="12" month="September" year="2021"/>
          <abstract>
            <t>   The Hypertext Transfer Protocol (HTTP) is a stateless application-
   level protocol for distributed, collaborative, hypertext information
   systems.  This document describes the overall architecture of HTTP,
   establishes common terminology, and defines aspects of the protocol
   that are shared by all versions.  In this definition are core
   protocol elements, extensibility mechanisms, and the "http" and
   "https" Uniform Resource Identifier (URI) schemes.

   This document updates RFC 3864 and obsoletes RFC 2818, RFC 7231, RFC
   7232, RFC 7233, RFC 7235, RFC 7538, RFC 7615, RFC 7694, and portions
   of RFC 7230.

            </t>
          </abstract>
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-httpbis-semantics-19"/>
      </reference>
      <reference anchor="STRUCTURED-FIELDS">
        <front>
          <title>Structured Field Values for HTTP</title>
          <author fullname="M. Nottingham" initials="M." surname="Nottingham">
            <organization/>
          </author>
          <author fullname="P-H. Kamp" initials="P-H." surname="Kamp">
            <organization/>
          </author>
          <date month="February" year="2021"/>
          <abstract>
            <t>This document describes a set of data types and associated algorithms that are intended to make it easier and safer to define and handle HTTP header and trailer fields, known as "Structured Fields", "Structured Headers", or "Structured Trailers". It is intended for use by specifications of new HTTP fields that wish to use a common syntax that is more restrictive than traditional HTTP field values.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="8941"/>
        <seriesInfo name="DOI" value="10.17487/RFC8941"/>
      </reference>
      <reference anchor="RFC8174">
        <front>
          <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
          <author fullname="B. Leiba" initials="B." surname="Leiba">
            <organization/>
          </author>
          <date month="May" year="2017"/>
          <abstract>
            <t>RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="8174"/>
        <seriesInfo name="DOI" value="10.17487/RFC8174"/>
      </reference>
      <reference anchor="RFC8288">
        <front>
          <title>Web Linking</title>
          <author fullname="M. Nottingham" initials="M." surname="Nottingham">
            <organization/>
          </author>
          <date month="October" year="2017"/>
          <abstract>
            <t>This specification defines a model for the relationships between resources on the Web ("links") and the type of those relationships ("link relation types").</t>
            <t>It also defines the serialisation of such links in HTTP headers with the Link header field.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="8288"/>
        <seriesInfo name="DOI" value="10.17487/RFC8288"/>
      </reference>
      <reference anchor="RFC6265">
        <front>
          <title>HTTP State Management Mechanism</title>
          <author fullname="A. Barth" initials="A." surname="Barth">
            <organization/>
          </author>
          <date month="April" year="2011"/>
          <abstract>
            <t>This document defines the HTTP Cookie and Set-Cookie header fields. These header fields can be used by HTTP servers to store state (called cookies) at HTTP user agents, letting the servers maintain a stateful session over the mostly stateless HTTP protocol.  Although cookies have many historical infelicities that degrade their security and privacy, the Cookie and Set-Cookie header fields are widely used on the Internet.  This document obsoletes RFC 2965.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6265"/>
        <seriesInfo name="DOI" value="10.17487/RFC6265"/>
      </reference>
    </references>
  </back>
  <!-- ##markdown-source:
H4sIAAAAAAAAA71c6XbbRpb+z6eoYX7E9iEoyVa80ONMK5LcVo8kK6aUpE+S
0ykCRbIiAMWgANEcO3mWeZZ5svnurcJGglr8o3V8JBKo5dbdt3IQBL1c57Ea
iQ8qz8xU52KcZ0WYF5mKxFut4siKqcnEu8vLi56cTDJ1c9vYXmTCVCZYL8rk
NA+0yqfBPM8XE22DzE8Ldvd6kcwx6NPRweXxn70QX2YmW42EzaNeTy+ykcDK
Nn+6u/tq92nvWq2WJotGPRFgRLXl1G2Jh7RDr2dzmUb/krFJsfRK2Z5NZJb/
64/C5MqORGp6Cz0SP+cmHAj80mmk0nwgrMnyTE0tPq0S/yHPdIhXoUkW0n9I
MBivdBrrVP3a692otFAAScwyUyxGDkNC5KsFdv/RZNc6nYm/0zs8nRvCCYFp
Rzs79Hc5G5pstoN3idTxSFSYCpazvy2f0Uu8k1k4r+fF2uZ26F7uHOCVvlF2
56KYxDrcaS5Ay2ZqYeqpM53Pi8kQ5/C7859AfcxVarVJ7U4sJyq2OyWRem5G
oK0tVMAvR6J62ZNFPjcZUQRbCeFofiaza3Fu8hxHn8uE3wBUmer/kTk2GfGT
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