<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-quic-qpack-21" indexInclude="true" ipr="trust200902" number="9204" prepTime="2022-06-06T12:07:43" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://dx.doi.org/10.17487/rfc9204" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <link href="https://datatracker.ietf.org/doc/draft-ietf-quic-qpack-latest" rel="prev"/>
  <front>
    <title abbrev="QPACK">QPACK: Field Compression for HTTP/3</title>
    <seriesInfo name="RFC" value="9204" stream="IETF"/>
    <author initials="C." surname="Krasic" fullname="Charles 'Buck' Krasic">
      <organization showOnFrontPage="true"/>
      <address>
        <email>krasic@acm.org</email>
      </address>
    </author>
    <author initials="M." surname="Bishop" fullname="Mike Bishop">
      <organization showOnFrontPage="true">Akamai Technologies</organization>
      <address>
        <email>mbishop@evequefou.be</email>
      </address>
    </author>
    <author initials="A." surname="Frindell" fullname="Alan Frindell" role="editor">
      <organization showOnFrontPage="true">Facebook</organization>
      <address>
        <email>afrind@fb.com</email>
      </address>
    </author>
    <date month="06" year="2022"/>
    <area>Transport</area>
    <workgroup>QUIC</workgroup>
    <keyword>compression</keyword>
    <keyword>HTTP/3</keyword>
    <keyword>HPACK</keyword>
    <keyword>header</keyword>
    <keyword>field</keyword>
    <keyword>trailer</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This specification defines QPACK: a compression format for efficiently
representing HTTP fields that is to be used in HTTP/3. This is a variation of
HPACK compression that seeks to reduce head-of-line blocking.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9204" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2022 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-conventions-and-definitions">Conventions and Definitions</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-notational-conventions">Notational Conventions</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-compression-process-overvie">Compression Process Overview</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-encoder">Encoder</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2.1.2">
                  <li pn="section-toc.1-1.2.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.2.2.1.2.1.1"><xref derivedContent="2.1.1" format="counter" sectionFormat="of" target="section-2.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-limits-on-dynamic-table-ins">Limits on Dynamic Table Insertions</xref></t>
                  </li>
                  <li pn="section-toc.1-1.2.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.2.2.1.2.2.1"><xref derivedContent="2.1.2" format="counter" sectionFormat="of" target="section-2.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-blocked-streams">Blocked Streams</xref></t>
                  </li>
                  <li pn="section-toc.1-1.2.2.1.2.3">
                    <t indent="0" pn="section-toc.1-1.2.2.1.2.3.1"><xref derivedContent="2.1.3" format="counter" sectionFormat="of" target="section-2.1.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-avoiding-flow-control-deadl">Avoiding Flow-Control Deadlocks</xref></t>
                  </li>
                  <li pn="section-toc.1-1.2.2.1.2.4">
                    <t indent="0" pn="section-toc.1-1.2.2.1.2.4.1"><xref derivedContent="2.1.4" format="counter" sectionFormat="of" target="section-2.1.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-known-received-count">Known Received Count</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-decoder">Decoder</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2.2.2">
                  <li pn="section-toc.1-1.2.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.2.2.2.2.1.1"><xref derivedContent="2.2.1" format="counter" sectionFormat="of" target="section-2.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-blocked-decoding">Blocked Decoding</xref></t>
                  </li>
                  <li pn="section-toc.1-1.2.2.2.2.2">
                    <t indent="0" pn="section-toc.1-1.2.2.2.2.2.1"><xref derivedContent="2.2.2" format="counter" sectionFormat="of" target="section-2.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-state-synchronization">State Synchronization</xref></t>
                  </li>
                  <li pn="section-toc.1-1.2.2.2.2.3">
                    <t indent="0" pn="section-toc.1-1.2.2.2.2.3.1"><xref derivedContent="2.2.3" format="counter" sectionFormat="of" target="section-2.2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-invalid-references">Invalid References</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-reference-tables">Reference Tables</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t indent="0" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-static-table">Static Table</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t indent="0" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-dynamic-table">Dynamic Table</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2.2.2">
                  <li pn="section-toc.1-1.3.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.1.1"><xref derivedContent="3.2.1" format="counter" sectionFormat="of" target="section-3.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-dynamic-table-size">Dynamic Table Size</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.2">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.2.1"><xref derivedContent="3.2.2" format="counter" sectionFormat="of" target="section-3.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-dynamic-table-capacity-and-">Dynamic Table Capacity and Eviction</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.3">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.3.1"><xref derivedContent="3.2.3" format="counter" sectionFormat="of" target="section-3.2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-maximum-dynamic-table-capac">Maximum Dynamic Table Capacity</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.4">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.4.1"><xref derivedContent="3.2.4" format="counter" sectionFormat="of" target="section-3.2.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-absolute-indexing">Absolute Indexing</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.5">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.5.1"><xref derivedContent="3.2.5" format="counter" sectionFormat="of" target="section-3.2.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-relative-indexing">Relative Indexing</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.6">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.6.1"><xref derivedContent="3.2.6" format="counter" sectionFormat="of" target="section-3.2.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-post-base-indexing">Post-Base Indexing</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-wire-format">Wire Format</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t indent="0" pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-primitives">Primitives</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.1.2">
                  <li pn="section-toc.1-1.4.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.1.2.1.1"><xref derivedContent="4.1.1" format="counter" sectionFormat="of" target="section-4.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-prefixed-integers">Prefixed Integers</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.1.2.2.1"><xref derivedContent="4.1.2" format="counter" sectionFormat="of" target="section-4.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-string-literals">String Literals</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.4.2.2">
                <t indent="0" pn="section-toc.1-1.4.2.2.1"><xref derivedContent="4.2" format="counter" sectionFormat="of" target="section-4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-encoder-and-decoder-streams">Encoder and Decoder Streams</xref></t>
              </li>
              <li pn="section-toc.1-1.4.2.3">
                <t indent="0" pn="section-toc.1-1.4.2.3.1"><xref derivedContent="4.3" format="counter" sectionFormat="of" target="section-4.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-encoder-instructions">Encoder Instructions</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.3.2">
                  <li pn="section-toc.1-1.4.2.3.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.3.2.1.1"><xref derivedContent="4.3.1" format="counter" sectionFormat="of" target="section-4.3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-set-dynamic-table-capacity">Set Dynamic Table Capacity</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.3.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.3.2.2.1"><xref derivedContent="4.3.2" format="counter" sectionFormat="of" target="section-4.3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-insert-with-name-reference">Insert with Name Reference</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.3.2.3">
                    <t indent="0" pn="section-toc.1-1.4.2.3.2.3.1"><xref derivedContent="4.3.3" format="counter" sectionFormat="of" target="section-4.3.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-insert-with-literal-name">Insert with Literal Name</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.3.2.4">
                    <t indent="0" pn="section-toc.1-1.4.2.3.2.4.1"><xref derivedContent="4.3.4" format="counter" sectionFormat="of" target="section-4.3.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-duplicate">Duplicate</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.4.2.4">
                <t indent="0" pn="section-toc.1-1.4.2.4.1"><xref derivedContent="4.4" format="counter" sectionFormat="of" target="section-4.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-decoder-instructions">Decoder Instructions</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.4.2">
                  <li pn="section-toc.1-1.4.2.4.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.4.2.1.1"><xref derivedContent="4.4.1" format="counter" sectionFormat="of" target="section-4.4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-section-acknowledgment">Section Acknowledgment</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.4.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.4.2.2.1"><xref derivedContent="4.4.2" format="counter" sectionFormat="of" target="section-4.4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-stream-cancellation">Stream Cancellation</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.4.2.3">
                    <t indent="0" pn="section-toc.1-1.4.2.4.2.3.1"><xref derivedContent="4.4.3" format="counter" sectionFormat="of" target="section-4.4.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-insert-count-increment">Insert Count Increment</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.4.2.5">
                <t indent="0" pn="section-toc.1-1.4.2.5.1"><xref derivedContent="4.5" format="counter" sectionFormat="of" target="section-4.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-field-line-representations">Field Line Representations</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.5.2">
                  <li pn="section-toc.1-1.4.2.5.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.5.2.1.1"><xref derivedContent="4.5.1" format="counter" sectionFormat="of" target="section-4.5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-encoded-field-section-prefi">Encoded Field Section Prefix</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.5.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.5.2.2.1"><xref derivedContent="4.5.2" format="counter" sectionFormat="of" target="section-4.5.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-indexed-field-line">Indexed Field Line</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.5.2.3">
                    <t indent="0" pn="section-toc.1-1.4.2.5.2.3.1"><xref derivedContent="4.5.3" format="counter" sectionFormat="of" target="section-4.5.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-indexed-field-line-with-pos">Indexed Field Line with Post-Base Index</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.5.2.4">
                    <t indent="0" pn="section-toc.1-1.4.2.5.2.4.1"><xref derivedContent="4.5.4" format="counter" sectionFormat="of" target="section-4.5.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-literal-field-line-with-nam">Literal Field Line with Name Reference</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.5.2.5">
                    <t indent="0" pn="section-toc.1-1.4.2.5.2.5.1"><xref derivedContent="4.5.5" format="counter" sectionFormat="of" target="section-4.5.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-literal-field-line-with-pos">Literal Field Line with Post-Base Name Reference</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.5.2.6">
                    <t indent="0" pn="section-toc.1-1.4.2.5.2.6.1"><xref derivedContent="4.5.6" format="counter" sectionFormat="of" target="section-4.5.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-literal-field-line-with-lit">Literal Field Line with Literal Name</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-configuration">Configuration</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-error-handling">Error Handling</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.7.2">
              <li pn="section-toc.1-1.7.2.1">
                <t indent="0" pn="section-toc.1-1.7.2.1.1"><xref derivedContent="7.1" format="counter" sectionFormat="of" target="section-7.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-probing-dynamic-table-state">Probing Dynamic Table State</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.7.2.1.2">
                  <li pn="section-toc.1-1.7.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.7.2.1.2.1.1"><xref derivedContent="7.1.1" format="counter" sectionFormat="of" target="section-7.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-applicability-to-qpack-and-">Applicability to QPACK and HTTP</xref></t>
                  </li>
                  <li pn="section-toc.1-1.7.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.7.2.1.2.2.1"><xref derivedContent="7.1.2" format="counter" sectionFormat="of" target="section-7.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-mitigation">Mitigation</xref></t>
                  </li>
                  <li pn="section-toc.1-1.7.2.1.2.3">
                    <t indent="0" pn="section-toc.1-1.7.2.1.2.3.1"><xref derivedContent="7.1.3" format="counter" sectionFormat="of" target="section-7.1.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-never-indexed-literals">Never-Indexed Literals</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.7.2.2">
                <t indent="0" pn="section-toc.1-1.7.2.2.1"><xref derivedContent="7.2" format="counter" sectionFormat="of" target="section-7.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-static-huffman-encoding">Static Huffman Encoding</xref></t>
              </li>
              <li pn="section-toc.1-1.7.2.3">
                <t indent="0" pn="section-toc.1-1.7.2.3.1"><xref derivedContent="7.3" format="counter" sectionFormat="of" target="section-7.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-memory-consumption">Memory Consumption</xref></t>
              </li>
              <li pn="section-toc.1-1.7.2.4">
                <t indent="0" pn="section-toc.1-1.7.2.4.1"><xref derivedContent="7.4" format="counter" sectionFormat="of" target="section-7.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-implementation-limits">Implementation Limits</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2">
              <li pn="section-toc.1-1.8.2.1">
                <t indent="0" pn="section-toc.1-1.8.2.1.1"><xref derivedContent="8.1" format="counter" sectionFormat="of" target="section-8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-settings-registration">Settings Registration</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.2">
                <t indent="0" pn="section-toc.1-1.8.2.2.1"><xref derivedContent="8.2" format="counter" sectionFormat="of" target="section-8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-stream-type-registration">Stream Type Registration</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.3">
                <t indent="0" pn="section-toc.1-1.8.2.3.1"><xref derivedContent="8.3" format="counter" sectionFormat="of" target="section-8.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-error-code-registration">Error Code Registration</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.9.2">
              <li pn="section-toc.1-1.9.2.1">
                <t indent="0" pn="section-toc.1-1.9.2.1.1"><xref derivedContent="9.1" format="counter" sectionFormat="of" target="section-9.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.2">
                <t indent="0" pn="section-toc.1-1.9.2.2.1"><xref derivedContent="9.2" format="counter" sectionFormat="of" target="section-9.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-static-table-2">Static Table</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="Appendix B" format="default" sectionFormat="of" target="section-appendix.b"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-encoding-and-decoding-examp">Encoding and Decoding Examples</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.11.2">
              <li pn="section-toc.1-1.11.2.1">
                <t indent="0" pn="section-toc.1-1.11.2.1.1"><xref derivedContent="B.1" format="counter" sectionFormat="of" target="section-appendix.b.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-literal-field-line-with-name-">Literal Field Line with Name Reference</xref></t>
              </li>
              <li pn="section-toc.1-1.11.2.2">
                <t indent="0" pn="section-toc.1-1.11.2.2.1"><xref derivedContent="B.2" format="counter" sectionFormat="of" target="section-appendix.b.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-dynamic-table-2">Dynamic Table</xref></t>
              </li>
              <li pn="section-toc.1-1.11.2.3">
                <t indent="0" pn="section-toc.1-1.11.2.3.1"><xref derivedContent="B.3" format="counter" sectionFormat="of" target="section-appendix.b.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-speculative-insert">Speculative Insert</xref></t>
              </li>
              <li pn="section-toc.1-1.11.2.4">
                <t indent="0" pn="section-toc.1-1.11.2.4.1"><xref derivedContent="B.4" format="counter" sectionFormat="of" target="section-appendix.b.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-duplicate-instruction-strea">Duplicate Instruction, Stream Cancellation</xref></t>
              </li>
              <li pn="section-toc.1-1.11.2.5">
                <t indent="0" pn="section-toc.1-1.11.2.5.1"><xref derivedContent="B.5" format="counter" sectionFormat="of" target="section-appendix.b.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-dynamic-table-insert-evicti">Dynamic Table Insert, Eviction</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="Appendix C" format="default" sectionFormat="of" target="section-appendix.c"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sample-single-pass-encoding">Sample Single-Pass Encoding Algorithm</xref></t>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.d"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.14">
            <t indent="0" pn="section-toc.1-1.14.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.e"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="introduction" numbered="true" removeInRFC="false" toc="include" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">The QUIC transport protocol (<xref target="QUIC-TRANSPORT" format="default" sectionFormat="of" derivedContent="QUIC-TRANSPORT"/>) is designed to support
HTTP semantics, and its design subsumes many of the features of HTTP/2
(<xref target="HTTP2" format="default" sectionFormat="of" derivedContent="HTTP/2"/>). HTTP/2 uses HPACK (<xref target="RFC7541" format="default" sectionFormat="of" derivedContent="RFC7541"/>) for compression of the header
and trailer sections.  If HPACK were used for HTTP/3 (<xref target="HTTP3" format="default" sectionFormat="of" derivedContent="HTTP/3"/>), it would
induce head-of-line blocking for field sections due to built-in assumptions of a
total ordering across frames on all streams.</t>
      <t indent="0" pn="section-1-2">QPACK reuses core concepts from HPACK, but is redesigned to allow correctness in
the presence of out-of-order delivery, with flexibility for implementations to
balance between resilience against head-of-line blocking and optimal compression
ratio.  The design goals are to closely approach the compression ratio of HPACK
with substantially less head-of-line blocking under the same loss conditions.</t>
      <section anchor="conventions-and-definitions" numbered="true" removeInRFC="false" toc="include" pn="section-1.1">
        <name slugifiedName="name-conventions-and-definitions">Conventions and Definitions</name>
        <t indent="0" pn="section-1.1-1">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" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/>
when, and only when, they appear in all capitals, as shown here.</t>
        <t indent="0" pn="section-1.1-2">The following terms are used in this document:</t>
        <dl indent="3" newline="false" spacing="normal" pn="section-1.1-3">
          <dt pn="section-1.1-3.1">HTTP fields:</dt>
          <dd pn="section-1.1-3.2">
            <t indent="0" pn="section-1.1-3.2.1">Metadata sent as part of an HTTP message.  The term encompasses both header
and trailer fields. Colloquially, the term "headers" has often been used to
refer to HTTP header fields and trailer fields; this document uses "fields"
for generality.</t>
          </dd>
          <dt pn="section-1.1-3.3">HTTP field line:</dt>
          <dd pn="section-1.1-3.4">
            <t indent="0" pn="section-1.1-3.4.1">A name-value pair sent as part of an HTTP field section. See Sections <xref target="HTTP" section="6.3" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9110#section-6.3" derivedContent="HTTP"/> and <xref target="HTTP" section="6.5" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9110#section-6.5" derivedContent="HTTP"/> of <xref target="HTTP" format="default" sectionFormat="of" derivedContent="HTTP"/>.</t>
          </dd>
          <dt pn="section-1.1-3.5">HTTP field value:</dt>
          <dd pn="section-1.1-3.6">
            <t indent="0" pn="section-1.1-3.6.1">Data associated with a field name, composed from all field line values with
that field name in that section, concatenated together with
comma separators.</t>
          </dd>
          <dt pn="section-1.1-3.7">Field section:</dt>
          <dd pn="section-1.1-3.8">
            <t indent="0" pn="section-1.1-3.8.1">An ordered collection of HTTP field lines associated with an HTTP message.  A
field section can contain multiple field lines with the same name.  It can
also contain duplicate field lines.  An HTTP message can include both header
and trailer sections.</t>
          </dd>
          <dt pn="section-1.1-3.9">Representation:</dt>
          <dd pn="section-1.1-3.10">
            <t indent="0" pn="section-1.1-3.10.1">An instruction that represents a field line, possibly by reference to the
dynamic and static tables.</t>
          </dd>
          <dt pn="section-1.1-3.11">Encoder:</dt>
          <dd pn="section-1.1-3.12">
            <t indent="0" pn="section-1.1-3.12.1">An implementation that encodes field sections.</t>
          </dd>
          <dt pn="section-1.1-3.13">Decoder:</dt>
          <dd pn="section-1.1-3.14">
            <t indent="0" pn="section-1.1-3.14.1">An implementation that decodes encoded field sections.</t>
          </dd>
          <dt pn="section-1.1-3.15">Absolute Index:</dt>
          <dd pn="section-1.1-3.16">
            <t indent="0" pn="section-1.1-3.16.1">A unique index for each entry in the dynamic table.</t>
          </dd>
          <dt pn="section-1.1-3.17">Base:</dt>
          <dd pn="section-1.1-3.18">
            <t indent="0" pn="section-1.1-3.18.1">A reference point for relative and post-Base indices.  Representations that
reference dynamic table entries are relative to a Base.</t>
          </dd>
          <dt pn="section-1.1-3.19">Insert Count:</dt>
          <dd pn="section-1.1-3.20">
            <t indent="0" pn="section-1.1-3.20.1">The total number of entries inserted in the dynamic table.</t>
          </dd>
        </dl>
        <t indent="0" pn="section-1.1-4">Note that QPACK is a name, not an abbreviation.</t>
      </section>
      <section anchor="notational-conventions" numbered="true" removeInRFC="false" toc="include" pn="section-1.2">
        <name slugifiedName="name-notational-conventions">Notational Conventions</name>
        <t indent="0" pn="section-1.2-1">Diagrams in this document use the format described in <xref section="3.1" sectionFormat="of" target="RFC2360" format="default" derivedLink="https://rfc-editor.org/rfc/rfc2360#section-3.1" derivedContent="RFC2360"/>, with the following additional conventions:</t>
        <dl indent="3" newline="false" spacing="normal" pn="section-1.2-2">
          <dt pn="section-1.2-2.1">x (A)</dt>
          <dd pn="section-1.2-2.2">
            <t indent="0" pn="section-1.2-2.2.1">Indicates that x is A bits long.</t>
          </dd>
          <dt pn="section-1.2-2.3">x (A+)</dt>
          <dd pn="section-1.2-2.4">
            <t indent="0" pn="section-1.2-2.4.1">Indicates that x uses the prefixed integer encoding defined in
<xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>, beginning with an A-bit prefix.</t>
          </dd>
          <dt pn="section-1.2-2.5">x ...</dt>
          <dd pn="section-1.2-2.6">
            <t indent="0" pn="section-1.2-2.6.1">Indicates that x is variable length and extends to the end of the region.</t>
          </dd>
        </dl>
      </section>
    </section>
    <section anchor="compression-process-overview" numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-compression-process-overvie">Compression Process Overview</name>
      <t indent="0" pn="section-2-1">Like HPACK, QPACK uses two tables for associating field lines ("headers") to
indices.  The static table (<xref target="header-table-static" format="default" sectionFormat="of" derivedContent="Section 3.1"/>) is predefined and contains
common header field lines (some of them with an empty value).  The dynamic table
(<xref target="header-table-dynamic" format="default" sectionFormat="of" derivedContent="Section 3.2"/>) is built up over the course of the connection and can
be used by the encoder to index both header and trailer field lines in the
encoded field sections.</t>
      <t indent="0" pn="section-2-2">QPACK defines unidirectional streams for sending instructions from encoder to
decoder and vice versa.</t>
      <section anchor="encoder" numbered="true" removeInRFC="false" toc="include" pn="section-2.1">
        <name slugifiedName="name-encoder">Encoder</name>
        <t indent="0" pn="section-2.1-1">An encoder converts a header or trailer section into a series of representations
by emitting either an indexed or a literal representation for each field line in
the list; see <xref target="field-line-representations" format="default" sectionFormat="of" derivedContent="Section 4.5"/>.  Indexed representations achieve
high compression by replacing the literal name and possibly the value with an
index to either the static or dynamic table.  References to the static table and
literal representations do not require any dynamic state and never risk
head-of-line blocking.  References to the dynamic table risk head-of-line
blocking if the encoder has not received an acknowledgment indicating the entry
is available at the decoder.</t>
        <t indent="0" pn="section-2.1-2">An encoder <bcp14>MAY</bcp14> insert any entry in the dynamic table it chooses; it is not
limited to field lines it is compressing.</t>
        <t indent="0" pn="section-2.1-3">QPACK preserves the ordering of field lines within each field section.  An
encoder <bcp14>MUST</bcp14> emit field representations in the order they appear in the input
field section.</t>
        <t indent="0" pn="section-2.1-4">QPACK is designed to place the burden of optional state tracking on the encoder,
resulting in relatively simple decoders.</t>
        <section anchor="blocked-insertion" numbered="true" removeInRFC="false" toc="include" pn="section-2.1.1">
          <name slugifiedName="name-limits-on-dynamic-table-ins">Limits on Dynamic Table Insertions</name>
          <t indent="0" pn="section-2.1.1-1">Inserting entries into the dynamic table might not be possible if the table
contains entries that cannot be evicted.</t>
          <t indent="0" pn="section-2.1.1-2">A dynamic table entry cannot be evicted immediately after insertion, even if it
has never been referenced. Once the insertion of a dynamic table entry has been
acknowledged and there are no outstanding references to the entry in
unacknowledged representations, the entry becomes evictable.  Note that
references on the encoder stream never preclude the eviction of an entry,
because those references are guaranteed to be processed before the instruction
evicting the entry.</t>
          <t indent="0" pn="section-2.1.1-3">If the dynamic table does not contain enough room for a new entry without
evicting other entries, and the entries that would be evicted are not
evictable, the encoder <bcp14>MUST NOT</bcp14> insert that entry into the dynamic table
(including duplicates of existing entries). In order to avoid this, an encoder
that uses the dynamic table has to keep track of each dynamic table entry
referenced by each field section until those representations are acknowledged by
the decoder; see <xref target="header-acknowledgment" format="default" sectionFormat="of" derivedContent="Section 4.4.1"/>.</t>
          <section anchor="avoiding-prohibited-insertions" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.1.1.1">
            <name slugifiedName="name-avoiding-prohibited-inserti">Avoiding Prohibited Insertions</name>
            <t indent="0" pn="section-2.1.1.1-1">To ensure that the encoder is not prevented from adding new entries, the encoder
can avoid referencing entries that are close to eviction.  Rather than
reference such an entry, the encoder can emit a Duplicate instruction
(<xref target="duplicate" format="default" sectionFormat="of" derivedContent="Section 4.3.4"/>) and reference the duplicate instead.</t>
            <t indent="0" pn="section-2.1.1.1-2">Determining which entries are too close to eviction to reference is an encoder
preference.  One heuristic is to target a fixed amount of available space in the
dynamic table: either unused space or space that can be reclaimed by evicting
non-blocking entries.  To achieve this, the encoder can maintain a draining
index, which is the smallest absolute index (<xref target="indexing" format="default" sectionFormat="of" derivedContent="Section 3.2.4"/>) in the dynamic table
that it will emit a reference for.  As new entries are inserted, the encoder
increases the draining index to maintain the section of the table that it will
not reference.  If the encoder does not create new references to entries with an
absolute index lower than the draining index, the number of unacknowledged
references to those entries will eventually become zero, allowing them to be
evicted.</t>
            <figure anchor="fig-draining-index" align="left" suppress-title="false" pn="figure-1">
              <name slugifiedName="name-draining-dynamic-table-entr">Draining Dynamic Table Entries</name>
              <artwork type="ascii-art" align="left" pn="section-2.1.1.1-3.1">
             &lt;-- Newer Entries          Older Entries --&gt;
               (Larger Indices)       (Smaller Indices)
   +--------+---------------------------------+----------+
   | Unused |          Referenceable          | Draining |
   | Space  |             Entries             | Entries  |
   +--------+---------------------------------+----------+
            ^                                 ^          ^
            |                                 |          |
      Insertion Point                 Draining Index  Dropping
                                                       Point
</artwork>
            </figure>
          </section>
        </section>
        <section anchor="blocked-streams" numbered="true" removeInRFC="false" toc="include" pn="section-2.1.2">
          <name slugifiedName="name-blocked-streams">Blocked Streams</name>
          <t indent="0" pn="section-2.1.2-1">Because QUIC does not guarantee order between data on different streams, a
decoder might encounter a representation that references a dynamic table entry
that it has not yet received.</t>
          <t indent="0" pn="section-2.1.2-2">Each encoded field section contains a Required Insert Count (<xref target="header-prefix" format="default" sectionFormat="of" derivedContent="Section 4.5.1"/>),
the lowest possible value for the Insert Count with which the field section can
be decoded. For a field section encoded using references to the dynamic table,
the Required Insert Count is one larger than the largest absolute index of all
referenced dynamic table entries. For a field section encoded with no references
to the dynamic table, the Required Insert Count is zero.</t>
          <t indent="0" pn="section-2.1.2-3">When the decoder receives an encoded field section with a Required Insert Count
greater than its own Insert Count, the stream cannot be processed immediately
and is considered "blocked"; see <xref target="blocked-decoding" format="default" sectionFormat="of" derivedContent="Section 2.2.1"/>.</t>
          <t indent="0" pn="section-2.1.2-4">The decoder specifies an upper bound on the number of streams that can be
blocked using the SETTINGS_QPACK_BLOCKED_STREAMS setting; see <xref target="configuration" format="default" sectionFormat="of" derivedContent="Section 5"/>.
An encoder <bcp14>MUST</bcp14> limit the number of streams that could become blocked to the
value of SETTINGS_QPACK_BLOCKED_STREAMS at all times. If a decoder encounters
more blocked streams than it promised to support, it <bcp14>MUST</bcp14> treat this as a
connection error of type QPACK_DECOMPRESSION_FAILED.</t>
          <t indent="0" pn="section-2.1.2-5">Note that the decoder might not become blocked on every stream that risks
becoming blocked.</t>
          <t indent="0" pn="section-2.1.2-6">An encoder can decide whether to risk having a stream become blocked. If
permitted by the value of SETTINGS_QPACK_BLOCKED_STREAMS, compression efficiency
can often be improved by referencing dynamic table entries that are still in
transit, but if there is loss or reordering, the stream can become blocked at
the decoder.  An encoder can avoid the risk of blocking by only referencing
dynamic table entries that have been acknowledged, but this could mean using
literals. Since literals make the encoded field section larger, this can result
in the encoder becoming blocked on congestion or flow-control limits.</t>
        </section>
        <section anchor="avoiding-flow-control-deadlocks" numbered="true" removeInRFC="false" toc="include" pn="section-2.1.3">
          <name slugifiedName="name-avoiding-flow-control-deadl">Avoiding Flow-Control Deadlocks</name>
          <t indent="0" pn="section-2.1.3-1">Writing instructions on streams that are limited by flow control can produce
deadlocks.</t>
          <t indent="0" pn="section-2.1.3-2">A decoder might stop issuing flow-control credit on the stream that carries an
encoded field section until the necessary updates are received on the encoder
stream. If the granting of flow-control credit on the encoder stream (or the
connection as a whole) depends on the consumption and release of data on the
stream carrying the encoded field section, a deadlock might result.</t>
          <t indent="0" pn="section-2.1.3-3">More generally, a stream containing a large instruction can become deadlocked if
the decoder withholds flow-control credit until the instruction is completely
received.</t>
          <t indent="0" pn="section-2.1.3-4">To avoid these deadlocks, an encoder <bcp14>SHOULD NOT</bcp14> write an instruction unless
sufficient stream and connection flow-control credit is available for the entire
instruction.</t>
        </section>
        <section anchor="known-received-count" numbered="true" removeInRFC="false" toc="include" pn="section-2.1.4">
          <name slugifiedName="name-known-received-count">Known Received Count</name>
          <t indent="0" pn="section-2.1.4-1">The Known Received Count is the total number of dynamic table insertions and
duplications acknowledged by the decoder.  The encoder tracks the Known Received
Count in order to identify which dynamic table entries can be referenced without
potentially blocking a stream.  The decoder tracks the Known Received Count in
order to be able to send Insert Count Increment instructions.</t>
          <t indent="0" pn="section-2.1.4-2">A Section Acknowledgment instruction (<xref target="header-acknowledgment" format="default" sectionFormat="of" derivedContent="Section 4.4.1"/>) implies that
the decoder has received all dynamic table state necessary to decode the field
section.  If the Required Insert Count of the acknowledged field section is
greater than the current Known Received Count, the Known Received Count is
updated to that Required Insert Count value.</t>
          <t indent="0" pn="section-2.1.4-3">An Insert Count Increment instruction (<xref target="insert-count-increment" format="default" sectionFormat="of" derivedContent="Section 4.4.3"/>) increases the
Known Received Count by its Increment parameter.  See <xref target="new-table-entries" format="default" sectionFormat="of" derivedContent="Section 2.2.2.3"/> for
guidance.</t>
        </section>
      </section>
      <section anchor="decoder" numbered="true" removeInRFC="false" toc="include" pn="section-2.2">
        <name slugifiedName="name-decoder">Decoder</name>
        <t indent="0" pn="section-2.2-1">As in HPACK, the decoder processes a series of representations and emits the
corresponding field sections. It also processes instructions received on the
encoder stream that modify the dynamic table.  Note that encoded field sections
and encoder stream instructions arrive on separate streams.  This is unlike
HPACK, where encoded field sections (header blocks) can contain instructions
that modify the dynamic table, and there is no dedicated stream of HPACK
instructions.</t>
        <t indent="0" pn="section-2.2-2">The decoder <bcp14>MUST</bcp14> emit field lines in the order their representations appear in
the encoded field section.</t>
        <section anchor="blocked-decoding" numbered="true" removeInRFC="false" toc="include" pn="section-2.2.1">
          <name slugifiedName="name-blocked-decoding">Blocked Decoding</name>
          <t indent="0" pn="section-2.2.1-1">Upon receipt of an encoded field section, the decoder examines the Required
Insert Count. When the Required Insert Count is less than or equal to the
decoder's Insert Count, the field section can be processed immediately.
Otherwise, the stream on which the field section was received becomes blocked.</t>
          <t indent="0" pn="section-2.2.1-2">While blocked, encoded field section data <bcp14>SHOULD</bcp14> remain in the blocked stream's
flow-control window. This data is unusable until the stream becomes unblocked,
and releasing the flow control prematurely makes the decoder vulnerable to
memory exhaustion attacks. A stream becomes unblocked when the Insert Count
becomes greater than or equal to the Required Insert Count for all encoded
field sections the decoder has started reading from the stream.</t>
          <t indent="0" pn="section-2.2.1-3">When processing encoded field sections, the decoder expects the Required Insert
Count to equal the lowest possible value for the Insert Count with which the
field section can be decoded, as prescribed in <xref target="blocked-streams" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/>. If it
encounters a Required Insert Count smaller than expected, it <bcp14>MUST</bcp14> treat this as
a connection error of type QPACK_DECOMPRESSION_FAILED; see
<xref target="invalid-references" format="default" sectionFormat="of" derivedContent="Section 2.2.3"/>. If it encounters a Required Insert Count larger than
expected, it <bcp14>MAY</bcp14> treat this as a connection error of type
QPACK_DECOMPRESSION_FAILED.</t>
        </section>
        <section anchor="state-synchronization" numbered="true" removeInRFC="false" toc="include" pn="section-2.2.2">
          <name slugifiedName="name-state-synchronization">State Synchronization</name>
          <t indent="0" pn="section-2.2.2-1">The decoder signals the following events by emitting decoder instructions
(<xref target="decoder-instructions" format="default" sectionFormat="of" derivedContent="Section 4.4"/>) on the decoder stream.</t>
          <section anchor="completed-processing-of-a-field-section" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.2.2.1">
            <name slugifiedName="name-completed-processing-of-a-f">Completed Processing of a Field Section</name>
            <t indent="0" pn="section-2.2.2.1-1">After the decoder finishes decoding a field section encoded using
representations containing dynamic table references, it <bcp14>MUST</bcp14> emit a Section
Acknowledgment instruction (<xref target="header-acknowledgment" format="default" sectionFormat="of" derivedContent="Section 4.4.1"/>).  A stream may carry
multiple field sections in the case of intermediate responses, trailers, and
pushed requests.  The encoder interprets each Section Acknowledgment
instruction as acknowledging the earliest unacknowledged field section
containing dynamic table references sent on the given stream.</t>
          </section>
          <section anchor="abandonment-of-a-stream" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.2.2.2">
            <name slugifiedName="name-abandonment-of-a-stream">Abandonment of a Stream</name>
            <t indent="0" pn="section-2.2.2.2-1">When an endpoint receives a stream reset before the end of a stream or before
all encoded field sections are processed on that stream, or when it abandons
reading of a stream, it generates a Stream Cancellation instruction; see
<xref target="stream-cancellation" format="default" sectionFormat="of" derivedContent="Section 4.4.2"/>.  This signals to the encoder that all references to the
dynamic table on that stream are no longer outstanding.  A decoder with a
maximum dynamic table capacity (<xref target="maximum-dynamic-table-capacity" format="default" sectionFormat="of" derivedContent="Section 3.2.3"/>) equal to
zero <bcp14>MAY</bcp14> omit sending Stream Cancellations, because the encoder cannot have any
dynamic table references.  An encoder cannot infer from this instruction that
any updates to the dynamic table have been received.</t>
            <t indent="0" pn="section-2.2.2.2-2">The Section Acknowledgment and Stream Cancellation instructions permit the
encoder to remove references to entries in the dynamic table.  When an entry
with an absolute index lower than the Known Received Count has zero references,
then it is considered evictable; see <xref target="blocked-insertion" format="default" sectionFormat="of" derivedContent="Section 2.1.1"/>.</t>
          </section>
          <section anchor="new-table-entries" numbered="true" removeInRFC="false" toc="exclude" pn="section-2.2.2.3">
            <name slugifiedName="name-new-table-entries">New Table Entries</name>
            <t indent="0" pn="section-2.2.2.3-1">After receiving new table entries on the encoder stream, the decoder chooses
when to emit Insert Count Increment instructions; see
<xref target="insert-count-increment" format="default" sectionFormat="of" derivedContent="Section 4.4.3"/>. Emitting this instruction after adding each new
dynamic table entry will provide the timeliest feedback to the encoder, but
could be redundant with other decoder feedback. By delaying an Insert Count
Increment instruction, the decoder might be able to coalesce multiple Insert
Count Increment instructions or replace them entirely with Section
Acknowledgments; see <xref target="header-acknowledgment" format="default" sectionFormat="of" derivedContent="Section 4.4.1"/>. However, delaying too long
may lead to compression inefficiencies if the encoder waits for an entry to be
acknowledged before using it.</t>
          </section>
        </section>
        <section anchor="invalid-references" numbered="true" removeInRFC="false" toc="include" pn="section-2.2.3">
          <name slugifiedName="name-invalid-references">Invalid References</name>
          <t indent="0" pn="section-2.2.3-1">If the decoder encounters a reference in a field line representation to a
dynamic table entry that has already been evicted or that has an absolute
index greater than or equal to the declared Required Insert Count
(<xref target="header-prefix" format="default" sectionFormat="of" derivedContent="Section 4.5.1"/>), it <bcp14>MUST</bcp14> treat this as a connection error of type
QPACK_DECOMPRESSION_FAILED.</t>
          <t indent="0" pn="section-2.2.3-2">If the decoder encounters a reference in an encoder instruction to a dynamic
table entry that has already been evicted, it <bcp14>MUST</bcp14> treat this as a connection
error of type QPACK_ENCODER_STREAM_ERROR.</t>
        </section>
      </section>
    </section>
    <section anchor="reference-tables" numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-reference-tables">Reference Tables</name>
      <t indent="0" pn="section-3-1">Unlike in HPACK, entries in the QPACK static and dynamic tables are addressed
separately.  The following sections describe how entries in each table are
addressed.</t>
      <section anchor="header-table-static" numbered="true" removeInRFC="false" toc="include" pn="section-3.1">
        <name slugifiedName="name-static-table">Static Table</name>
        <t indent="0" pn="section-3.1-1">The static table consists of a predefined list of field lines, each of which has
a fixed index over time.  Its entries are defined in <xref target="static-table" format="default" sectionFormat="of" derivedContent="Appendix A"/>.</t>
        <t indent="0" pn="section-3.1-2">All entries in the static table have a name and a value.  However, values can be
empty (that is, have a length of 0).  Each entry is identified by a unique
index.</t>
        <t indent="0" pn="section-3.1-3">Note that the QPACK static table is indexed from 0, whereas the HPACK static
table is indexed from 1.</t>
        <t indent="0" pn="section-3.1-4">When the decoder encounters an invalid static table index in a field line
representation, it <bcp14>MUST</bcp14> treat this as a connection error of type
QPACK_DECOMPRESSION_FAILED.  If this index is received on the encoder stream,
this <bcp14>MUST</bcp14> be treated as a connection error of type QPACK_ENCODER_STREAM_ERROR.</t>
      </section>
      <section anchor="header-table-dynamic" numbered="true" removeInRFC="false" toc="include" pn="section-3.2">
        <name slugifiedName="name-dynamic-table">Dynamic Table</name>
        <t indent="0" pn="section-3.2-1">The dynamic table consists of a list of field lines maintained in first-in,
first-out order.  A QPACK encoder and decoder share a dynamic table that is
initially empty.  The encoder adds entries to the dynamic table and sends them
to the decoder via instructions on the encoder stream; see
<xref target="encoder-instructions" format="default" sectionFormat="of" derivedContent="Section 4.3"/>.</t>
        <t indent="0" pn="section-3.2-2">The dynamic table can contain duplicate entries (i.e., entries with the same
name and same value).  Therefore, duplicate entries <bcp14>MUST NOT</bcp14> be treated as an
error by the decoder.</t>
        <t indent="0" pn="section-3.2-3">Dynamic table entries can have empty values.</t>
        <section anchor="dynamic-table-size" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.1">
          <name slugifiedName="name-dynamic-table-size">Dynamic Table Size</name>
          <t indent="0" pn="section-3.2.1-1">The size of the dynamic table is the sum of the size of its entries.</t>
          <t indent="0" pn="section-3.2.1-2">The size of an entry is the sum of its name's length in bytes, its value's
length in bytes, and 32 additional bytes.  The size of an entry is calculated
using the length of its name and value without Huffman encoding applied.</t>
        </section>
        <section anchor="eviction" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.2">
          <name slugifiedName="name-dynamic-table-capacity-and-">Dynamic Table Capacity and Eviction</name>
          <t indent="0" pn="section-3.2.2-1">The encoder sets the capacity of the dynamic table, which serves as the upper
limit on its size.  The initial capacity of the dynamic table is zero.  The
encoder sends a Set Dynamic Table Capacity instruction
(<xref target="set-dynamic-capacity" format="default" sectionFormat="of" derivedContent="Section 4.3.1"/>) with a non-zero capacity to begin using the dynamic
table.</t>
          <t indent="0" pn="section-3.2.2-2">Before a new entry is added to the dynamic table, entries are evicted from the
end of the dynamic table until the size of the dynamic table is less than or
equal to (table capacity - size of new entry). The encoder <bcp14>MUST NOT</bcp14> cause a
dynamic table entry to be evicted unless that entry is evictable; see
<xref target="blocked-insertion" format="default" sectionFormat="of" derivedContent="Section 2.1.1"/>.  The new entry is then added to the table.  It is an
error if the encoder attempts to add an entry that is larger than the dynamic
table capacity; the decoder <bcp14>MUST</bcp14> treat this as a connection error of type
QPACK_ENCODER_STREAM_ERROR.</t>
          <t indent="0" pn="section-3.2.2-3">A new entry can reference an entry in the dynamic table that will be evicted
when adding this new entry into the dynamic table.  Implementations are
cautioned to avoid deleting the referenced name or value if the referenced entry
is evicted from the dynamic table prior to inserting the new entry.</t>
          <t indent="0" pn="section-3.2.2-4">Whenever the dynamic table capacity is reduced by the encoder
(<xref target="set-dynamic-capacity" format="default" sectionFormat="of" derivedContent="Section 4.3.1"/>), entries are evicted from the end of the dynamic
table until the size of the dynamic table is less than or equal to the new table
capacity.  This mechanism can be used to completely clear entries from the
dynamic table by setting a capacity of 0, which can subsequently be restored.</t>
        </section>
        <section anchor="maximum-dynamic-table-capacity" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.3">
          <name slugifiedName="name-maximum-dynamic-table-capac">Maximum Dynamic Table Capacity</name>
          <t indent="0" pn="section-3.2.3-1">To bound the memory requirements of the decoder, the decoder limits the maximum
value the encoder is permitted to set for the dynamic table capacity.  In
HTTP/3, this limit is determined by the value of
SETTINGS_QPACK_MAX_TABLE_CAPACITY sent by the decoder; see <xref target="configuration" format="default" sectionFormat="of" derivedContent="Section 5"/>.
The encoder <bcp14>MUST NOT</bcp14> set a dynamic table capacity that exceeds this maximum, but
it can choose to use a lower dynamic table capacity; see
<xref target="set-dynamic-capacity" format="default" sectionFormat="of" derivedContent="Section 4.3.1"/>.</t>
          <t indent="0" pn="section-3.2.3-2">For clients using 0-RTT data in HTTP/3, the server's maximum table capacity is
the remembered value of the setting or zero if the value was not previously
sent.  When the client's 0-RTT value of the SETTING is zero, the server <bcp14>MAY</bcp14> set
it to a non-zero value in its SETTINGS frame. If the remembered value is
non-zero, the server <bcp14>MUST</bcp14> send the same non-zero value in its SETTINGS frame. If
it specifies any other value, or omits SETTINGS_QPACK_MAX_TABLE_CAPACITY from
SETTINGS, the encoder must treat this as a connection error of type
QPACK_DECODER_STREAM_ERROR.</t>
          <t indent="0" pn="section-3.2.3-3">For clients not using 0-RTT data (whether 0-RTT is not attempted or is rejected)
and for all HTTP/3 servers, the maximum table capacity is 0 until the encoder
processes a SETTINGS frame with a non-zero value of
SETTINGS_QPACK_MAX_TABLE_CAPACITY.</t>
          <t indent="0" pn="section-3.2.3-4">When the maximum table capacity is zero, the encoder <bcp14>MUST NOT</bcp14> insert entries
into the dynamic table and <bcp14>MUST NOT</bcp14> send any encoder instructions on the encoder
stream.</t>
        </section>
        <section anchor="indexing" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.4">
          <name slugifiedName="name-absolute-indexing">Absolute Indexing</name>
          <t indent="0" pn="section-3.2.4-1">Each entry possesses an absolute index that is fixed for the lifetime of that
entry. The first entry inserted has an absolute index of 0; indices increase
by one with each insertion.</t>
        </section>
        <section anchor="relative-indexing" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.5">
          <name slugifiedName="name-relative-indexing">Relative Indexing</name>
          <t indent="0" pn="section-3.2.5-1">Relative indices begin at zero and increase in the opposite direction from the
absolute index.  Determining which entry has a relative index of 0 depends on
the context of the reference.</t>
          <t indent="0" pn="section-3.2.5-2">In encoder instructions (<xref target="encoder-instructions" format="default" sectionFormat="of" derivedContent="Section 4.3"/>), a relative index of 0
refers to the most recently inserted value in the dynamic table.  Note that this
means the entry referenced by a given relative index will change while
interpreting instructions on the encoder stream.</t>
          <figure align="left" suppress-title="false" pn="figure-2">
            <name slugifiedName="name-example-dynamic-table-index">Example Dynamic Table Indexing - Encoder Stream</name>
            <artwork type="ascii-art" align="left" pn="section-3.2.5-3.1">
      +-----+---------------+-------+
      | n-1 |      ...      |   d   |  Absolute Index
      + - - +---------------+ - - - +
      |  0  |      ...      | n-d-1 |  Relative Index
      +-----+---------------+-------+
      ^                             |
      |                             V
Insertion Point               Dropping Point

n = count of entries inserted
d = count of entries dropped
</artwork>
          </figure>
          <t indent="0" pn="section-3.2.5-4">Unlike in encoder instructions, relative indices in field line representations
are relative to the Base at the beginning of the encoded field section; see
<xref target="header-prefix" format="default" sectionFormat="of" derivedContent="Section 4.5.1"/>. This ensures that references are stable even if encoded field
sections and dynamic table updates are processed out of order.</t>
          <t indent="0" pn="section-3.2.5-5">In a field line representation, a relative index of 0 refers to the entry with
absolute index equal to Base - 1.</t>
          <figure align="left" suppress-title="false" pn="figure-3">
            <name slugifiedName="name-example-dynamic-table-indexi">Example Dynamic Table Indexing - Relative Index in Representation</name>
            <artwork type="ascii-art" align="left" pn="section-3.2.5-6.1">
               Base
                |
                V
    +-----+-----+-----+-----+-------+
    | n-1 | n-2 | n-3 | ... |   d   |  Absolute Index
    +-----+-----+  -  +-----+   -   +
                |  0  | ... | n-d-3 |  Relative Index
                +-----+-----+-------+

n = count of entries inserted
d = count of entries dropped
In this example, Base = n - 2
</artwork>
          </figure>
        </section>
        <section anchor="post-base" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.6">
          <name slugifiedName="name-post-base-indexing">Post-Base Indexing</name>
          <t indent="0" pn="section-3.2.6-1">Post-Base indices are used in field line representations for entries with
absolute indices greater than or equal to Base, starting at 0 for the entry with
absolute index equal to Base and increasing in the same direction as the
absolute index.</t>
          <t indent="0" pn="section-3.2.6-2">Post-Base indices allow an encoder to process a field section in a single pass
and include references to entries added while processing this (or other) field
sections.</t>
          <figure align="left" suppress-title="false" pn="figure-4">
            <name slugifiedName="name-example-dynamic-table-indexin">Example Dynamic Table Indexing - Post-Base Index in Representation</name>
            <artwork type="ascii-art" align="left" pn="section-3.2.6-3.1">
               Base
                |
                V
    +-----+-----+-----+-----+-----+
    | n-1 | n-2 | n-3 | ... |  d  |  Absolute Index
    +-----+-----+-----+-----+-----+
    |  1  |  0  |                    Post-Base Index
    +-----+-----+

n = count of entries inserted
d = count of entries dropped
In this example, Base = n - 2
</artwork>
          </figure>
        </section>
      </section>
    </section>
    <section anchor="wire-format" numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-wire-format">Wire Format</name>
      <section anchor="primitives" numbered="true" removeInRFC="false" toc="include" pn="section-4.1">
        <name slugifiedName="name-primitives">Primitives</name>
        <section anchor="prefixed-integers" numbered="true" removeInRFC="false" toc="include" pn="section-4.1.1">
          <name slugifiedName="name-prefixed-integers">Prefixed Integers</name>
          <t indent="0" pn="section-4.1.1-1">The prefixed integer from <xref section="5.1" sectionFormat="of" target="RFC7541" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7541#section-5.1" derivedContent="RFC7541"/> is used heavily throughout
this document.  The format from <xref target="RFC7541" format="default" sectionFormat="of" derivedContent="RFC7541"/> is used unmodified.  Note, however,
that QPACK uses some prefix sizes not actually used in HPACK.</t>
          <t indent="0" pn="section-4.1.1-2">QPACK implementations <bcp14>MUST</bcp14> be able to decode integers up to and including 62
bits long.</t>
        </section>
        <section anchor="string-literals" numbered="true" removeInRFC="false" toc="include" pn="section-4.1.2">
          <name slugifiedName="name-string-literals">String Literals</name>
          <t indent="0" pn="section-4.1.2-1">The string literal defined by <xref section="5.2" sectionFormat="of" target="RFC7541" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7541#section-5.2" derivedContent="RFC7541"/> is also used
throughout. This string format includes optional Huffman encoding.</t>
          <t indent="0" pn="section-4.1.2-2">HPACK defines string literals to begin on a byte boundary.  They begin with a
single bit flag, denoted as 'H' in this document (indicating whether the string
is Huffman encoded), followed by the string length encoded as a 7-bit prefix
integer, and finally the indicated number of bytes of data. When Huffman
encoding is enabled, the Huffman table from <xref section="B" sectionFormat="of" target="RFC7541" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7541#appendix-B" derivedContent="RFC7541"/> is used
without modification and the indicated length is the size of the string after
encoding.</t>
          <t indent="0" pn="section-4.1.2-3">This document expands the definition of string literals by permitting them to
begin other than on a byte boundary.  An "N-bit prefix string literal" begins
mid-byte, with the first (8-N) bits allocated to a previous field. The string
uses one bit for the Huffman flag, followed by the length of the encoded string
as a (N-1)-bit prefix integer.  The prefix size, N, can have a value between 2
and 8, inclusive. The remainder of the string literal is unmodified.</t>
          <t indent="0" pn="section-4.1.2-4">A string literal without a prefix length noted is an 8-bit prefix string literal
and follows the definitions in <xref target="RFC7541" format="default" sectionFormat="of" derivedContent="RFC7541"/> without modification.</t>
        </section>
      </section>
      <section anchor="enc-dec-stream-def" numbered="true" removeInRFC="false" toc="include" pn="section-4.2">
        <name slugifiedName="name-encoder-and-decoder-streams">Encoder and Decoder Streams</name>
        <t indent="0" pn="section-4.2-1">QPACK defines two unidirectional stream types:</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-4.2-2">
          <li pn="section-4.2-2.1">An encoder stream is a unidirectional stream of type 0x02.
It carries an unframed sequence of encoder instructions from encoder
to decoder.</li>
          <li pn="section-4.2-2.2">A decoder stream is a unidirectional stream of type 0x03.
It carries an unframed sequence of decoder instructions from decoder
to encoder.</li>
        </ul>
        <t indent="0" pn="section-4.2-3">HTTP/3 endpoints contain a QPACK encoder and decoder. Each endpoint <bcp14>MUST</bcp14>
initiate, at most, one encoder stream and, at most, one decoder stream. Receipt
of a second instance of either stream type <bcp14>MUST</bcp14> be treated as a connection error
of type H3_STREAM_CREATION_ERROR.</t>
        <t indent="0" pn="section-4.2-4">The sender <bcp14>MUST NOT</bcp14> close either of these streams, and the receiver <bcp14>MUST NOT</bcp14>
request that the sender close either of these streams. Closure of either
unidirectional stream type <bcp14>MUST</bcp14> be treated as a connection error of type
H3_CLOSED_CRITICAL_STREAM.</t>
        <t indent="0" pn="section-4.2-5">An endpoint <bcp14>MAY</bcp14> avoid creating an encoder stream if it will not be used (for
example, if its encoder does not wish to use the dynamic table or if the maximum
size of the dynamic table permitted by the peer is zero).</t>
        <t indent="0" pn="section-4.2-6">An endpoint <bcp14>MAY</bcp14> avoid creating a decoder stream if its decoder sets the maximum
capacity of the dynamic table to zero.</t>
        <t indent="0" pn="section-4.2-7">An endpoint <bcp14>MUST</bcp14> allow its peer to create an encoder stream and a decoder stream
even if the connection's settings prevent their use.</t>
      </section>
      <section anchor="encoder-instructions" numbered="true" removeInRFC="false" toc="include" pn="section-4.3">
        <name slugifiedName="name-encoder-instructions">Encoder Instructions</name>
        <t indent="0" pn="section-4.3-1">An encoder sends encoder instructions on the encoder stream to set the capacity
of the dynamic table and add dynamic table entries.  Instructions adding table
entries can use existing entries to avoid transmitting redundant information.
The name can be transmitted as a reference to an existing entry in the static or
the dynamic table or as a string literal.  For entries that already exist in
the dynamic table, the full entry can also be used by reference, creating a
duplicate entry.</t>
        <section anchor="set-dynamic-capacity" numbered="true" removeInRFC="false" toc="include" pn="section-4.3.1">
          <name slugifiedName="name-set-dynamic-table-capacity">Set Dynamic Table Capacity</name>
          <t indent="0" pn="section-4.3.1-1">An encoder informs the decoder of a change to the dynamic table capacity using
an instruction that starts with the '001' 3-bit pattern.  This is followed
by the new dynamic table capacity represented as an integer with a 5-bit prefix;
see <xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>.</t>
          <figure anchor="fig-set-capacity" align="left" suppress-title="false" pn="figure-5">
            <name slugifiedName="name-set-dynamic-table-capacity-2">Set Dynamic Table Capacity</name>
            <artwork type="ascii-art" align="left" pn="section-4.3.1-2.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
| 0 | 0 | 1 |   Capacity (5+)   |
+---+---+---+-------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.3.1-3">The new capacity <bcp14>MUST</bcp14> be lower than or equal to the limit described in
<xref target="maximum-dynamic-table-capacity" format="default" sectionFormat="of" derivedContent="Section 3.2.3"/>.  In HTTP/3, this limit is the value of the
SETTINGS_QPACK_MAX_TABLE_CAPACITY parameter (<xref target="configuration" format="default" sectionFormat="of" derivedContent="Section 5"/>) received from
the decoder.  The decoder <bcp14>MUST</bcp14> treat a new dynamic table capacity value that
exceeds this limit as a connection error of type QPACK_ENCODER_STREAM_ERROR.</t>
          <t indent="0" pn="section-4.3.1-4">Reducing the dynamic table capacity can cause entries to be evicted; see
<xref target="eviction" format="default" sectionFormat="of" derivedContent="Section 3.2.2"/>.  This <bcp14>MUST NOT</bcp14> cause the eviction of entries that are not
evictable; see <xref target="blocked-insertion" format="default" sectionFormat="of" derivedContent="Section 2.1.1"/>.  Changing the capacity of the dynamic
table is not acknowledged as this instruction does not insert an entry.</t>
        </section>
        <section anchor="insert-with-name-reference" numbered="true" removeInRFC="false" toc="include" pn="section-4.3.2">
          <name slugifiedName="name-insert-with-name-reference">Insert with Name Reference</name>
          <t indent="0" pn="section-4.3.2-1">An encoder adds an entry to the dynamic table where the field name matches the
field name of an entry stored in the static or the dynamic table using an
instruction that starts with the '1' 1-bit pattern.  The second ('T') bit
indicates whether the reference is to the static or dynamic table. The 6-bit
prefix integer (<xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>) that follows is used to locate the table
entry for the field name.  When T=1, the number represents the static table
index; when T=0, the number is the relative index of the entry in the dynamic
table.</t>
          <t indent="0" pn="section-4.3.2-2">The field name reference is followed by the field value represented as a string
literal; see <xref target="string-literals" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.</t>
          <figure align="left" suppress-title="false" pn="figure-6">
            <name slugifiedName="name-insert-field-line-indexed-n">Insert Field Line -- Indexed Name</name>
            <artwork type="ascii-art" align="left" pn="section-4.3.2-3.1">
     0   1   2   3   4   5   6   7
   +---+---+---+---+---+---+---+---+
   | 1 | T |    Name Index (6+)    |
   +---+---+-----------------------+
   | H |     Value Length (7+)     |
   +---+---------------------------+
   |  Value String (Length bytes)  |
   +-------------------------------+
</artwork>
          </figure>
        </section>
        <section anchor="insert-with-literal-name" numbered="true" removeInRFC="false" toc="include" pn="section-4.3.3">
          <name slugifiedName="name-insert-with-literal-name">Insert with Literal Name</name>
          <t indent="0" pn="section-4.3.3-1">An encoder adds an entry to the dynamic table where both the field name and the
field value are represented as string literals using an instruction that starts
with the '01' 2-bit pattern.</t>
          <t indent="0" pn="section-4.3.3-2">This is followed by the name represented as a 6-bit prefix string literal and
the value represented as an 8-bit prefix string literal; see
<xref target="string-literals" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.</t>
          <figure align="left" suppress-title="false" pn="figure-7">
            <name slugifiedName="name-insert-field-line-new-name">Insert Field Line -- New Name</name>
            <artwork type="ascii-art" align="left" pn="section-4.3.3-3.1">
     0   1   2   3   4   5   6   7
   +---+---+---+---+---+---+---+---+
   | 0 | 1 | H | Name Length (5+)  |
   +---+---+---+-------------------+
   |  Name String (Length bytes)   |
   +---+---------------------------+
   | H |     Value Length (7+)     |
   +---+---------------------------+
   |  Value String (Length bytes)  |
   +-------------------------------+
</artwork>
          </figure>
        </section>
        <section anchor="duplicate" numbered="true" removeInRFC="false" toc="include" pn="section-4.3.4">
          <name slugifiedName="name-duplicate">Duplicate</name>
          <t indent="0" pn="section-4.3.4-1">An encoder duplicates an existing entry in the dynamic table using an
instruction that starts with the '000' 3-bit pattern.  This is followed by
the relative index of the existing entry represented as an integer with a 5-bit
prefix; see <xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>.</t>
          <figure anchor="fig-index-with-duplication" align="left" suppress-title="false" pn="figure-8">
            <name slugifiedName="name-duplicate-2">Duplicate</name>
            <artwork type="ascii-art" align="left" pn="section-4.3.4-2.1">
     0   1   2   3   4   5   6   7
   +---+---+---+---+---+---+---+---+
   | 0 | 0 | 0 |    Index (5+)     |
   +---+---+---+-------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.3.4-3">The existing entry is reinserted into the dynamic table without resending
either the name or the value. This is useful to avoid adding a reference to an
older entry, which might block inserting new entries.</t>
        </section>
      </section>
      <section anchor="decoder-instructions" numbered="true" removeInRFC="false" toc="include" pn="section-4.4">
        <name slugifiedName="name-decoder-instructions">Decoder Instructions</name>
        <t indent="0" pn="section-4.4-1">A decoder sends decoder instructions on the decoder stream to inform the encoder
about the processing of field sections and table updates to ensure consistency
of the dynamic table.</t>
        <section anchor="header-acknowledgment" numbered="true" removeInRFC="false" toc="include" pn="section-4.4.1">
          <name slugifiedName="name-section-acknowledgment">Section Acknowledgment</name>
          <t indent="0" pn="section-4.4.1-1">After processing an encoded field section whose declared Required Insert Count
is not zero, the decoder emits a Section Acknowledgment instruction.  The
instruction starts with the '1' 1-bit pattern, followed by the field
section's associated stream ID encoded as a 7-bit prefix integer; see
<xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>.</t>
          <t indent="0" pn="section-4.4.1-2">This instruction is used as described in Sections <xref format="counter" target="known-received-count" sectionFormat="of" derivedContent="2.1.4"/> and
<xref format="counter" target="state-synchronization" sectionFormat="of" derivedContent="2.2.2"/>.</t>
          <figure anchor="fig-header-ack" align="left" suppress-title="false" pn="figure-9">
            <name slugifiedName="name-section-acknowledgment-2">Section Acknowledgment</name>
            <artwork type="ascii-art" align="left" pn="section-4.4.1-3.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
| 1 |      Stream ID (7+)       |
+---+---------------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.4.1-4">If an encoder receives a Section Acknowledgment instruction referring to a
stream on which every encoded field section with a non-zero Required Insert
Count has already been acknowledged, this <bcp14>MUST</bcp14> be treated as a connection error
of type QPACK_DECODER_STREAM_ERROR.</t>
          <t indent="0" pn="section-4.4.1-5">The Section Acknowledgment instruction might increase the Known Received Count;
see <xref target="known-received-count" format="default" sectionFormat="of" derivedContent="Section 2.1.4"/>.</t>
        </section>
        <section anchor="stream-cancellation" numbered="true" removeInRFC="false" toc="include" pn="section-4.4.2">
          <name slugifiedName="name-stream-cancellation">Stream Cancellation</name>
          <t indent="0" pn="section-4.4.2-1">When a stream is reset or reading is abandoned, the decoder emits a Stream
Cancellation instruction. The instruction starts with the '01' 2-bit
pattern, followed by the stream ID of the affected stream encoded as a
6-bit prefix integer.</t>
          <t indent="0" pn="section-4.4.2-2">This instruction is used as described in <xref target="state-synchronization" format="default" sectionFormat="of" derivedContent="Section 2.2.2"/>.</t>
          <figure anchor="fig-stream-cancel" align="left" suppress-title="false" pn="figure-10">
            <name slugifiedName="name-stream-cancellation-2">Stream Cancellation</name>
            <artwork type="ascii-art" align="left" pn="section-4.4.2-3.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
| 0 | 1 |     Stream ID (6+)    |
+---+---+-----------------------+
</artwork>
          </figure>
        </section>
        <section anchor="insert-count-increment" numbered="true" removeInRFC="false" toc="include" pn="section-4.4.3">
          <name slugifiedName="name-insert-count-increment">Insert Count Increment</name>
          <t indent="0" pn="section-4.4.3-1">The Insert Count Increment instruction starts with the '00' 2-bit pattern,
followed by the Increment encoded as a 6-bit prefix integer.  This instruction
increases the Known Received Count (<xref target="known-received-count" format="default" sectionFormat="of" derivedContent="Section 2.1.4"/>) by the value of
the Increment parameter.  The decoder should send an Increment value that
increases the Known Received Count to the total number of dynamic table
insertions and duplications processed so far.</t>
          <figure anchor="fig-size-sync" align="left" suppress-title="false" pn="figure-11">
            <name slugifiedName="name-insert-count-increment-2">Insert Count Increment</name>
            <artwork type="ascii-art" align="left" pn="section-4.4.3-2.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
| 0 | 0 |     Increment (6+)    |
+---+---+-----------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.4.3-3">An encoder that receives an Increment field equal to zero, or one that increases
the Known Received Count beyond what the encoder has sent, <bcp14>MUST</bcp14> treat this as a
connection error of type QPACK_DECODER_STREAM_ERROR.</t>
        </section>
      </section>
      <section anchor="field-line-representations" numbered="true" removeInRFC="false" toc="include" pn="section-4.5">
        <name slugifiedName="name-field-line-representations">Field Line Representations</name>
        <t indent="0" pn="section-4.5-1">An encoded field section consists of a prefix and a possibly empty sequence of
representations defined in this section.  Each representation corresponds to a
single field line.  These representations reference the static table or the
dynamic table in a particular state, but they do not modify that state.</t>
        <t indent="0" pn="section-4.5-2">Encoded field sections are carried in frames on streams defined by the enclosing
protocol.</t>
        <section anchor="header-prefix" numbered="true" removeInRFC="false" toc="include" pn="section-4.5.1">
          <name slugifiedName="name-encoded-field-section-prefi">Encoded Field Section Prefix</name>
          <t indent="0" pn="section-4.5.1-1">Each encoded field section is prefixed with two integers.  The Required Insert
Count is encoded as an integer with an 8-bit prefix using the encoding described
in <xref target="ric" format="default" sectionFormat="of" derivedContent="Section 4.5.1.1"/>.  The Base is encoded as a Sign bit ('S') and a Delta Base value
with a 7-bit prefix; see <xref target="base" format="default" sectionFormat="of" derivedContent="Section 4.5.1.2"/>.</t>
          <figure anchor="fig-base-index" align="left" suppress-title="false" pn="figure-12">
            <name slugifiedName="name-encoded-field-section">Encoded Field Section</name>
            <artwork type="ascii-art" align="left" pn="section-4.5.1-2.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
|   Required Insert Count (8+)  |
+---+---------------------------+
| S |      Delta Base (7+)      |
+---+---------------------------+
|      Encoded Field Lines    ...
+-------------------------------+
</artwork>
          </figure>
          <section anchor="ric" numbered="true" removeInRFC="false" toc="exclude" pn="section-4.5.1.1">
            <name slugifiedName="name-required-insert-count">Required Insert Count</name>
            <t indent="0" pn="section-4.5.1.1-1">Required Insert Count identifies the state of the dynamic table needed to
process the encoded field section.  Blocking decoders use the Required Insert
Count to determine when it is safe to process the rest of the field section.</t>
            <t indent="0" pn="section-4.5.1.1-2">The encoder transforms the Required Insert Count as follows before encoding:</t>
            <sourcecode type="pseudocode" markers="false" pn="section-4.5.1.1-3">
   if ReqInsertCount == 0:
      EncInsertCount = 0
   else:
      EncInsertCount = (ReqInsertCount mod (2 * MaxEntries)) + 1
</sourcecode>
            <t indent="0" pn="section-4.5.1.1-4">Here <tt>MaxEntries</tt> is the maximum number of entries that the dynamic table can
have.  The smallest entry has empty name and value strings and has the size of
32.  Hence, <tt>MaxEntries</tt> is calculated as:</t>
            <sourcecode type="pseudocode" markers="false" pn="section-4.5.1.1-5">
   MaxEntries = floor( MaxTableCapacity / 32 )
</sourcecode>
            <t indent="0" pn="section-4.5.1.1-6"><tt>MaxTableCapacity</tt> is the maximum capacity of the dynamic table as specified by
the decoder; see <xref target="maximum-dynamic-table-capacity" format="default" sectionFormat="of" derivedContent="Section 3.2.3"/>.</t>
            <t indent="0" pn="section-4.5.1.1-7">This encoding limits the length of the prefix on long-lived connections.</t>
            <t indent="0" pn="section-4.5.1.1-8">The decoder can reconstruct the Required Insert Count using an algorithm such as
the following.  If the decoder encounters a value of EncodedInsertCount that
could not have been produced by a conformant encoder, it <bcp14>MUST</bcp14> treat this as a
connection error of type QPACK_DECOMPRESSION_FAILED.</t>
            <t indent="0" pn="section-4.5.1.1-9"><tt>TotalNumberOfInserts</tt> is the total number of inserts into the decoder's dynamic
table.</t>
            <sourcecode type="pseudocode" markers="false" pn="section-4.5.1.1-10">
   FullRange = 2 * MaxEntries
   if EncodedInsertCount == 0:
      ReqInsertCount = 0
   else:
      if EncodedInsertCount &gt; FullRange:
         Error
      MaxValue = TotalNumberOfInserts + MaxEntries

      # MaxWrapped is the largest possible value of
      # ReqInsertCount that is 0 mod 2 * MaxEntries
      MaxWrapped = floor(MaxValue / FullRange) * FullRange
      ReqInsertCount = MaxWrapped + EncodedInsertCount - 1

      # If ReqInsertCount exceeds MaxValue, the Encoder's value
      # must have wrapped one fewer time
      if ReqInsertCount &gt; MaxValue:
         if ReqInsertCount &lt;= FullRange:
            Error
         ReqInsertCount -= FullRange

      # Value of 0 must be encoded as 0.
      if ReqInsertCount == 0:
         Error
</sourcecode>
            <t indent="0" pn="section-4.5.1.1-11">For example, if the dynamic table is 100 bytes, then the Required Insert Count
will be encoded modulo 6.  If a decoder has received 10 inserts, then an encoded
value of 4 indicates that the Required Insert Count is 9 for the field section.</t>
          </section>
          <section anchor="base" numbered="true" removeInRFC="false" toc="exclude" pn="section-4.5.1.2">
            <name slugifiedName="name-base">Base</name>
            <t indent="0" pn="section-4.5.1.2-1">The Base is used to resolve references in the dynamic table as described in
<xref target="relative-indexing" format="default" sectionFormat="of" derivedContent="Section 3.2.5"/>.</t>
            <t indent="0" pn="section-4.5.1.2-2">To save space, the Base is encoded relative to the Required Insert Count using a
one-bit Sign ('S' in <xref target="fig-base-index" format="default" sectionFormat="of" derivedContent="Figure 12"/>) and the Delta Base value.  A Sign bit
of 0 indicates that the Base is greater than or equal to the value of the
Required Insert Count; the decoder adds the value of Delta Base to the Required
Insert Count to determine the value of the Base.  A Sign bit of 1 indicates that
the Base is less than the Required Insert Count; the decoder subtracts the value
of Delta Base from the Required Insert Count and also subtracts one to determine
the value of the Base. That is:</t>
            <sourcecode type="pseudocode" markers="false" pn="section-4.5.1.2-3">
   if Sign == 0:
      Base = ReqInsertCount + DeltaBase
   else:
      Base = ReqInsertCount - DeltaBase - 1
</sourcecode>
            <t indent="0" pn="section-4.5.1.2-4">A single-pass encoder determines the Base before encoding a field section.  If
the encoder inserted entries in the dynamic table while encoding the field
section and is referencing them, Required Insert Count will be greater than the
Base, so the encoded difference is negative and the Sign bit is set to 1.  If
the field section was not encoded using representations that reference the most
recent entry in the table and did not insert any new entries, the Base will be
greater than the Required Insert Count, so the encoded difference will be
positive and the Sign bit is set to 0.</t>
            <t indent="0" pn="section-4.5.1.2-5">The value of Base <bcp14>MUST NOT</bcp14> be negative. Though the protocol might operate
correctly with a negative Base using post-Base indexing, it is unnecessary and
inefficient. An endpoint <bcp14>MUST</bcp14> treat a field block with a Sign bit of 1 as
invalid if the value of Required Insert Count is less than or equal to the value
of Delta Base.</t>
            <t indent="0" pn="section-4.5.1.2-6">An encoder that produces table updates before encoding a field section might set
Base to the value of Required Insert Count.  In such a case, both the Sign bit
and the Delta Base will be set to zero.</t>
            <t indent="0" pn="section-4.5.1.2-7">A field section that was encoded without references to the dynamic table can use
any value for the Base; setting Delta Base to zero is one of the most efficient
encodings.</t>
            <t indent="0" pn="section-4.5.1.2-8">For example, with a Required Insert Count of 9, a decoder receives a Sign bit
of 1 and a Delta Base of 2.  This sets the Base to 6 and enables post-Base
indexing for three entries.  In this example, a relative index of 1 refers to
the fifth entry that was added to the table; a post-Base index of 1 refers to
the eighth entry.</t>
          </section>
        </section>
        <section anchor="indexed-field-line" numbered="true" removeInRFC="false" toc="include" pn="section-4.5.2">
          <name slugifiedName="name-indexed-field-line">Indexed Field Line</name>
          <t indent="0" pn="section-4.5.2-1">An indexed field line representation identifies an entry in the static table
or an entry in the dynamic table with an absolute index less than the value of
the Base.</t>
          <figure align="left" suppress-title="false" pn="figure-13">
            <name slugifiedName="name-indexed-field-line-2">Indexed Field Line</name>
            <artwork type="ascii-art" align="left" pn="section-4.5.2-2.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
| 1 | T |      Index (6+)       |
+---+---+-----------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.5.2-3">This representation starts with the '1' 1-bit pattern, followed by the 'T' bit,
indicating whether the reference is into the static or dynamic table.  The 6-bit
prefix integer (<xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>) that follows is used to locate the
table entry for the field line.  When T=1, the number represents the static
table index; when T=0, the number is the relative index of the entry in the
dynamic table.</t>
        </section>
        <section anchor="indexed-field-line-with-post-base-index" numbered="true" removeInRFC="false" toc="include" pn="section-4.5.3">
          <name slugifiedName="name-indexed-field-line-with-pos">Indexed Field Line with Post-Base Index</name>
          <t indent="0" pn="section-4.5.3-1">An indexed field line with post-Base index representation identifies an entry
in the dynamic table with an absolute index greater than or equal to the value
of the Base.</t>
          <figure align="left" suppress-title="false" pn="figure-14">
            <name slugifiedName="name-indexed-field-line-with-post">Indexed Field Line with Post-Base Index</name>
            <artwork type="ascii-art" align="left" pn="section-4.5.3-2.1">
  0   1   2   3   4   5   6   7
+---+---+---+---+---+---+---+---+
| 0 | 0 | 0 | 1 |  Index (4+)   |
+---+---+---+---+---------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.5.3-3">This representation starts with the '0001' 4-bit pattern.  This is followed
by the post-Base index (<xref target="post-base" format="default" sectionFormat="of" derivedContent="Section 3.2.6"/>) of the matching field line, represented
as an integer with a 4-bit prefix; see <xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>.</t>
        </section>
        <section anchor="literal-name-reference" numbered="true" removeInRFC="false" toc="include" pn="section-4.5.4">
          <name slugifiedName="name-literal-field-line-with-nam">Literal Field Line with Name Reference</name>
          <t indent="0" pn="section-4.5.4-1">A literal field line with name reference representation encodes a field line
where the field name matches the field name of an entry in the static table or
the field name of an entry in the dynamic table with an absolute index less than
the value of the Base.</t>
          <figure align="left" suppress-title="false" pn="figure-15">
            <name slugifiedName="name-literal-field-line-with-name">Literal Field Line with Name Reference</name>
            <artwork type="ascii-art" align="left" pn="section-4.5.4-2.1">
     0   1   2   3   4   5   6   7
   +---+---+---+---+---+---+---+---+
   | 0 | 1 | N | T |Name Index (4+)|
   +---+---+---+---+---------------+
   | H |     Value Length (7+)     |
   +---+---------------------------+
   |  Value String (Length bytes)  |
   +-------------------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.5.4-3">This representation starts with the '01' 2-bit pattern.  The following bit,
'N', indicates whether an intermediary is permitted to add this field line to
the dynamic table on subsequent hops. When the 'N' bit is set, the encoded field
line <bcp14>MUST</bcp14> always be encoded with a literal representation. In particular, when a
peer sends a field line that it received represented as a literal field line
with the 'N' bit set, it <bcp14>MUST</bcp14> use a literal representation to forward this field
line.  This bit is intended for protecting field values that are not to be put
at risk by compressing them; see <xref target="probing-dynamic-table-state" format="default" sectionFormat="of" derivedContent="Section 7.1"/> for more
details.</t>
          <t indent="0" pn="section-4.5.4-4">The fourth ('T') bit indicates whether the reference is to the static or dynamic
table.  The 4-bit prefix integer (<xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>) that follows is used to
locate the table entry for the field name.  When T=1, the number represents the
static table index; when T=0, the number is the relative index of the entry in
the dynamic table.</t>
          <t indent="0" pn="section-4.5.4-5">Only the field name is taken from the dynamic table entry; the field value is
encoded as an 8-bit prefix string literal; see <xref target="string-literals" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.</t>
        </section>
        <section anchor="literal-field-line-with-post-base-name-reference" numbered="true" removeInRFC="false" toc="include" pn="section-4.5.5">
          <name slugifiedName="name-literal-field-line-with-pos">Literal Field Line with Post-Base Name Reference</name>
          <t indent="0" pn="section-4.5.5-1">A literal field line with post-Base name reference representation encodes a
field line where the field name matches the field name of a dynamic table entry
with an absolute index greater than or equal to the value of the Base.</t>
          <figure align="left" suppress-title="false" pn="figure-16">
            <name slugifiedName="name-literal-field-line-with-post">Literal Field Line with Post-Base Name Reference</name>
            <artwork type="ascii-art" align="left" pn="section-4.5.5-2.1">
     0   1   2   3   4   5   6   7
   +---+---+---+---+---+---+---+---+
   | 0 | 0 | 0 | 0 | N |NameIdx(3+)|
   +---+---+---+---+---+-----------+
   | H |     Value Length (7+)     |
   +---+---------------------------+
   |  Value String (Length bytes)  |
   +-------------------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.5.5-3">This representation starts with the '0000' 4-bit pattern.  The fifth bit is
the 'N' bit as described in <xref target="literal-name-reference" format="default" sectionFormat="of" derivedContent="Section 4.5.4"/>.  This is followed by a
post-Base index of the dynamic table entry (<xref target="post-base" format="default" sectionFormat="of" derivedContent="Section 3.2.6"/>) encoded as an
integer with a 3-bit prefix; see <xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>.</t>
          <t indent="0" pn="section-4.5.5-4">Only the field name is taken from the dynamic table entry; the field value is
encoded as an 8-bit prefix string literal; see <xref target="string-literals" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.</t>
        </section>
        <section anchor="literal-field-line-with-literal-name" numbered="true" removeInRFC="false" toc="include" pn="section-4.5.6">
          <name slugifiedName="name-literal-field-line-with-lit">Literal Field Line with Literal Name</name>
          <t indent="0" pn="section-4.5.6-1">The literal field line with literal name representation encodes a
field name and a field value as string literals.</t>
          <figure align="left" suppress-title="false" pn="figure-17">
            <name slugifiedName="name-literal-field-line-with-lite">Literal Field Line with Literal Name</name>
            <artwork type="ascii-art" align="left" pn="section-4.5.6-2.1">
     0   1   2   3   4   5   6   7
   +---+---+---+---+---+---+---+---+
   | 0 | 0 | 1 | N | H |NameLen(3+)|
   +---+---+---+---+---+-----------+
   |  Name String (Length bytes)   |
   +---+---------------------------+
   | H |     Value Length (7+)     |
   +---+---------------------------+
   |  Value String (Length bytes)  |
   +-------------------------------+
</artwork>
          </figure>
          <t indent="0" pn="section-4.5.6-3">This representation starts with the '001' 3-bit pattern.  The fourth bit is
the 'N' bit as described in <xref target="literal-name-reference" format="default" sectionFormat="of" derivedContent="Section 4.5.4"/>.  The name follows,
represented as a 4-bit prefix string literal, then the value, represented as an
8-bit prefix string literal; see <xref target="string-literals" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.</t>
        </section>
      </section>
    </section>
    <section anchor="configuration" numbered="true" removeInRFC="false" toc="include" pn="section-5">
      <name slugifiedName="name-configuration">Configuration</name>
      <t indent="0" pn="section-5-1">QPACK defines two settings for the HTTP/3 SETTINGS frame:</t>
      <dl indent="3" newline="false" spacing="normal" pn="section-5-2">
        <dt pn="section-5-2.1">SETTINGS_QPACK_MAX_TABLE_CAPACITY (0x01):</dt>
        <dd pn="section-5-2.2">
          <t indent="0" pn="section-5-2.2.1">The default value is zero.  See <xref target="header-table-dynamic" format="default" sectionFormat="of" derivedContent="Section 3.2"/> for usage.  This is
the equivalent of the SETTINGS_HEADER_TABLE_SIZE from HTTP/2.</t>
        </dd>
        <dt pn="section-5-2.3">SETTINGS_QPACK_BLOCKED_STREAMS (0x07):</dt>
        <dd pn="section-5-2.4">
          <t indent="0" pn="section-5-2.4.1">The default value is zero.  See <xref target="blocked-streams" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/>.</t>
        </dd>
      </dl>
    </section>
    <section anchor="error-handling" numbered="true" removeInRFC="false" toc="include" pn="section-6">
      <name slugifiedName="name-error-handling">Error Handling</name>
      <t indent="0" pn="section-6-1">The following error codes are defined for HTTP/3 to indicate failures of
QPACK that prevent the stream or connection from continuing:</t>
      <dl indent="3" newline="false" spacing="normal" pn="section-6-2">
        <dt pn="section-6-2.1">QPACK_DECOMPRESSION_FAILED (0x0200):</dt>
        <dd pn="section-6-2.2">
          <t indent="0" pn="section-6-2.2.1">The decoder failed to interpret an encoded field section and is not able to
continue decoding that field section.</t>
        </dd>
        <dt pn="section-6-2.3">QPACK_ENCODER_STREAM_ERROR (0x0201):</dt>
        <dd pn="section-6-2.4">
          <t indent="0" pn="section-6-2.4.1">The decoder failed to interpret an encoder instruction received on the
encoder stream.</t>
        </dd>
        <dt pn="section-6-2.5">QPACK_DECODER_STREAM_ERROR (0x0202):</dt>
        <dd pn="section-6-2.6">
          <t indent="0" pn="section-6-2.6.1">The encoder failed to interpret a decoder instruction received on the
decoder stream.</t>
        </dd>
      </dl>
    </section>
    <section anchor="security-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-7">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-7-1">This section describes potential areas of security concern with QPACK:</t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-7-2">
        <li pn="section-7-2.1">Use of compression as a length-based oracle for verifying guesses about
secrets that are compressed into a shared compression context.</li>
        <li pn="section-7-2.2">Denial of service resulting from exhausting processing or memory capacity at
a decoder.</li>
      </ul>
      <section anchor="probing-dynamic-table-state" numbered="true" removeInRFC="false" toc="include" pn="section-7.1">
        <name slugifiedName="name-probing-dynamic-table-state">Probing Dynamic Table State</name>
        <t indent="0" pn="section-7.1-1">QPACK reduces the encoded size of field sections by exploiting the redundancy
inherent in protocols like HTTP. The ultimate goal of this is to reduce the
amount of data that is required to send HTTP requests or responses.</t>
        <t indent="0" pn="section-7.1-2">The compression context used to encode header and trailer fields can be probed
by an attacker who can both define fields to be encoded and transmitted and
observe the length of those fields once they are encoded. When an attacker can
do both, they can adaptively modify requests in order to confirm guesses about
the dynamic table state. If a guess is compressed into a shorter length, the
attacker can observe the encoded length and infer that the guess was correct.</t>
        <t indent="0" pn="section-7.1-3">This is possible even over the Transport Layer Security Protocol
(<xref target="TLS" format="default" sectionFormat="of" derivedContent="TLS"/>) and the QUIC Transport Protocol (<xref target="QUIC-TRANSPORT" format="default" sectionFormat="of" derivedContent="QUIC-TRANSPORT"/>), because
while TLS and QUIC provide confidentiality protection for content, they only
provide a limited amount of protection for the length of that content.</t>
        <aside pn="section-7.1-4">
          <t indent="0" pn="section-7.1-4.1">Note: Padding schemes only provide limited protection against an attacker with
these capabilities, potentially only forcing an increased number of guesses to
learn the length associated with a given guess. Padding schemes also work
directly against compression by increasing the number of bits that are
transmitted.</t>
        </aside>
        <t indent="0" pn="section-7.1-5">Attacks like CRIME (<xref target="CRIME" format="default" sectionFormat="of" derivedContent="CRIME"/>) demonstrated the existence of these general
attacker capabilities. The specific attack exploited the fact that DEFLATE
(<xref target="RFC1951" format="default" sectionFormat="of" derivedContent="RFC1951"/>) removes redundancy based on prefix matching. This permitted the
attacker to confirm guesses a character at a time, reducing an exponential-time
attack into a linear-time attack.</t>
        <section anchor="applicability-to-qpack-and-http" numbered="true" removeInRFC="false" toc="include" pn="section-7.1.1">
          <name slugifiedName="name-applicability-to-qpack-and-">Applicability to QPACK and HTTP</name>
          <t indent="0" pn="section-7.1.1-1">QPACK mitigates, but does not completely prevent, attacks modeled on CRIME
(<xref target="CRIME" format="default" sectionFormat="of" derivedContent="CRIME"/>) by forcing a guess to match an entire field line rather than
individual characters. An attacker can only learn whether a guess is correct or
not, so the attacker is reduced to a brute-force guess for the field values
associated with a given field name.</t>
          <t indent="0" pn="section-7.1.1-2">Therefore, the viability of recovering specific field values depends on the
entropy of values. As a result, values with high entropy are unlikely to be
recovered successfully. However, values with low entropy remain vulnerable.</t>
          <t indent="0" pn="section-7.1.1-3">Attacks of this nature are possible any time that two mutually distrustful
entities control requests or responses that are placed onto a single HTTP/3
connection. If the shared QPACK compressor permits one entity to add entries to
the dynamic table, and the other to refer to those entries while encoding
chosen field lines, then the attacker (the second entity) can learn the state
of the table by observing the length of the encoded output.</t>
          <t indent="0" pn="section-7.1.1-4">For example, requests or responses from mutually distrustful entities can occur
when an intermediary either:</t>
          <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-7.1.1-5">
            <li pn="section-7.1.1-5.1">sends requests from multiple clients on a single connection toward an origin
server, or</li>
            <li pn="section-7.1.1-5.2">takes responses from multiple origin servers and places them on a shared
connection toward a client.</li>
          </ul>
          <t indent="0" pn="section-7.1.1-6">Web browsers also need to assume that requests made on the same connection by
different web origins (<xref target="RFC6454" format="default" sectionFormat="of" derivedContent="RFC6454"/>) are made by mutually distrustful entities.
Other scenarios involving mutually distrustful entities are also possible.</t>
        </section>
        <section anchor="mitigation" numbered="true" removeInRFC="false" toc="include" pn="section-7.1.2">
          <name slugifiedName="name-mitigation">Mitigation</name>
          <t indent="0" pn="section-7.1.2-1">Users of HTTP that require confidentiality for header or trailer fields can use
values with entropy sufficient to make guessing infeasible. However, this is
impractical as a general solution because it forces all users of HTTP to take
steps to mitigate attacks. It would impose new constraints on how HTTP is used.</t>
          <t indent="0" pn="section-7.1.2-2">Rather than impose constraints on users of HTTP, an implementation of QPACK can
instead constrain how compression is applied in order to limit the potential for
dynamic table probing.</t>
          <t indent="0" pn="section-7.1.2-3">An ideal solution segregates access to the dynamic table based on the entity
that is constructing the message. Field values that are added to the table are
attributed to an entity, and only the entity that created a particular value can
extract that value.</t>
          <t indent="0" pn="section-7.1.2-4">To improve compression performance of this option, certain entries might be
tagged as being public. For example, a web browser might make the values of the
Accept-Encoding header field available in all requests.</t>
          <t indent="0" pn="section-7.1.2-5">An encoder without good knowledge of the provenance of field values might
instead introduce a penalty for many field lines with the same field name and
different values.  This penalty could cause a large number of attempts to guess
a field value to result in the field not being compared to the dynamic table
entries in future messages, effectively preventing further guesses.</t>
          <t indent="0" pn="section-7.1.2-6">This response might be made inversely proportional to the length of the
field value. Disabling access to the dynamic table for a given field name might
occur for shorter values more quickly or with higher probability than for longer
values.</t>
          <t indent="0" pn="section-7.1.2-7">This mitigation is most effective between two endpoints. If messages are
re-encoded by an intermediary without knowledge of which entity constructed a
given message, the intermediary could inadvertently merge compression contexts
that the original encoder had specifically kept separate.</t>
          <aside pn="section-7.1.2-8">
            <t indent="0" pn="section-7.1.2-8.1">Note: Simply removing entries corresponding to the field from the dynamic table
can be ineffectual if the attacker has a reliable way of causing values to be
reinstalled. For example, a request to load an image in a web browser typically
includes the Cookie header field (a potentially highly valued target for this
sort of attack), and websites can easily force an image to be loaded, thereby
refreshing the entry in the dynamic table.</t>
          </aside>
        </section>
        <section anchor="never-indexed-literals" numbered="true" removeInRFC="false" toc="include" pn="section-7.1.3">
          <name slugifiedName="name-never-indexed-literals">Never-Indexed Literals</name>
          <t indent="0" pn="section-7.1.3-1">Implementations can also choose to protect sensitive fields by not compressing
them and instead encoding their value as literals.</t>
          <t indent="0" pn="section-7.1.3-2">Refusing to insert a field line into the dynamic table is only effective if
doing so is avoided on all hops. The never-indexed literal bit (see
<xref target="literal-name-reference" format="default" sectionFormat="of" derivedContent="Section 4.5.4"/>) can be used to signal to intermediaries that a
particular value was intentionally sent as a literal.</t>
          <t indent="0" pn="section-7.1.3-3">An intermediary <bcp14>MUST NOT</bcp14> re-encode a value that uses a literal representation
with the 'N' bit set with another representation that would index it. If QPACK
is used for re-encoding, a literal representation with the 'N' bit set <bcp14>MUST</bcp14> be
used.  If HPACK is used for re-encoding, the never-indexed literal
representation (see <xref section="6.2.3" sectionFormat="of" target="RFC7541" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7541#section-6.2.3" derivedContent="RFC7541"/>) <bcp14>MUST</bcp14> be used.</t>
          <t indent="0" pn="section-7.1.3-4">The choice to mark that a field value should never be indexed depends on several
factors. Since QPACK does not protect against guessing an entire field value,
short or low-entropy values are more readily recovered by an adversary.
Therefore, an encoder might choose not to index values with low entropy.</t>
          <t indent="0" pn="section-7.1.3-5">An encoder might also choose not to index values for fields that are considered
to be highly valuable or sensitive to recovery, such as the Cookie or
Authorization header fields.</t>
          <t indent="0" pn="section-7.1.3-6">On the contrary, an encoder might prefer indexing values for fields that have
little or no value if they were exposed. For instance, a User-Agent header field
does not commonly vary between requests and is sent to any server. In that case,
confirmation that a particular User-Agent value has been used provides little
value.</t>
          <t indent="0" pn="section-7.1.3-7">Note that these criteria for deciding to use a never-indexed literal
representation will evolve over time as new attacks are discovered.</t>
        </section>
      </section>
      <section anchor="static-huffman-encoding" numbered="true" removeInRFC="false" toc="include" pn="section-7.2">
        <name slugifiedName="name-static-huffman-encoding">Static Huffman Encoding</name>
        <t indent="0" pn="section-7.2-1">There is no currently known attack against a static Huffman encoding. A study
has shown that using a static Huffman encoding table created an information
leakage; however, this same study concluded that an attacker could not take
advantage of this information leakage to recover any meaningful amount of
information (see <xref target="PETAL" format="default" sectionFormat="of" derivedContent="PETAL"/>).</t>
      </section>
      <section anchor="memory-consumption" numbered="true" removeInRFC="false" toc="include" pn="section-7.3">
        <name slugifiedName="name-memory-consumption">Memory Consumption</name>
        <t indent="0" pn="section-7.3-1">An attacker can try to cause an endpoint to exhaust its memory. QPACK is
designed to limit both the peak and stable amounts of memory allocated by an
endpoint.</t>
        <t indent="0" pn="section-7.3-2">QPACK uses the definition of the maximum size of the dynamic table and the
maximum number of blocking streams to limit the amount of memory the encoder can
cause the decoder to consume. In HTTP/3, these values are controlled by the
decoder through the settings parameters SETTINGS_QPACK_MAX_TABLE_CAPACITY and
SETTINGS_QPACK_BLOCKED_STREAMS, respectively (see
<xref target="maximum-dynamic-table-capacity" format="default" sectionFormat="of" derivedContent="Section 3.2.3"/> and <xref target="blocked-streams" format="default" sectionFormat="of" derivedContent="Section 2.1.2"/>). The limit on the
size of the dynamic table takes into account the size of the data stored in the
dynamic table, plus a small allowance for overhead.  The limit on the number of
blocked streams is only a proxy for the maximum amount of memory required by the
decoder.  The actual maximum amount of memory will depend on how much memory the
decoder uses to track each blocked stream.</t>
        <t indent="0" pn="section-7.3-3">A decoder can limit the amount of state memory used for the dynamic table by
setting an appropriate value for the maximum size of the dynamic table. In
HTTP/3, this is realized by setting an appropriate value for the
SETTINGS_QPACK_MAX_TABLE_CAPACITY parameter. An encoder can limit the amount of
state memory it uses by choosing a smaller dynamic table size than the decoder
allows and signaling this to the decoder (see <xref target="set-dynamic-capacity" format="default" sectionFormat="of" derivedContent="Section 4.3.1"/>).</t>
        <t indent="0" pn="section-7.3-4">A decoder can limit the amount of state memory used for blocked streams by
setting an appropriate value for the maximum number of blocked streams.  In
HTTP/3, this is realized by setting an appropriate value for the
SETTINGS_QPACK_BLOCKED_STREAMS parameter.  Streams that risk becoming blocked
consume no additional state memory on the encoder.</t>
        <t indent="0" pn="section-7.3-5">An encoder allocates memory to track all dynamic table references in
unacknowledged field sections.  An implementation can directly limit the amount
of state memory by only using as many references to the dynamic table as it
wishes to track; no signaling to the decoder is required.  However, limiting
references to the dynamic table will reduce compression effectiveness.</t>
        <t indent="0" pn="section-7.3-6">The amount of temporary memory consumed by an encoder or decoder can be limited
by processing field lines sequentially. A decoder implementation does not need
to retain a complete list of field lines while decoding a field section. An
encoder implementation does not need to retain a complete list of field lines
while encoding a field section if it is using a single-pass algorithm.  Note
that it might be necessary for an application to retain a complete list of field
lines for other reasons; even if QPACK does not force this to occur, application
constraints might make this necessary.</t>
        <t indent="0" pn="section-7.3-7">While the negotiated limit on the dynamic table size accounts for much of the
memory that can be consumed by a QPACK implementation, data that cannot be
immediately sent due to flow control is not affected by this limit.
Implementations should limit the size of unsent data, especially on the decoder
stream where flexibility to choose what to send is limited.  Possible responses
to an excess of unsent data might include limiting the ability of the peer to
open new streams, reading only from the encoder stream, or closing the
connection.</t>
      </section>
      <section anchor="implementation-limits" numbered="true" removeInRFC="false" toc="include" pn="section-7.4">
        <name slugifiedName="name-implementation-limits">Implementation Limits</name>
        <t indent="0" pn="section-7.4-1">An implementation of QPACK needs to ensure that large values for integers, long
encoding for integers, or long string literals do not create security
weaknesses.</t>
        <t indent="0" pn="section-7.4-2">An implementation has to set a limit for the values it accepts for integers, as
well as for the encoded length; see <xref target="prefixed-integers" format="default" sectionFormat="of" derivedContent="Section 4.1.1"/>. In the same way, it
has to set a limit to the length it accepts for string literals; see
<xref target="string-literals" format="default" sectionFormat="of" derivedContent="Section 4.1.2"/>.  These limits <bcp14>SHOULD</bcp14> be large enough to process the
largest individual field the HTTP implementation can be configured to accept.</t>
        <t indent="0" pn="section-7.4-3">If an implementation encounters a value larger than it is able to decode, this
<bcp14>MUST</bcp14> be treated as a stream error of type QPACK_DECOMPRESSION_FAILED if on a
request stream or a connection error of the appropriate type if on the encoder
or decoder stream.</t>
      </section>
    </section>
    <section anchor="iana-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-8">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-8-1">This document makes multiple registrations in the registries defined by
<xref target="HTTP3" format="default" sectionFormat="of" derivedContent="HTTP/3"/>. The allocations created by this document are all assigned permanent
status and list a change controller of the IETF and a contact of the HTTP
working group (ietf-http-wg@w3.org).</t>
      <section anchor="settings-registration" numbered="true" removeInRFC="false" toc="include" pn="section-8.1">
        <name slugifiedName="name-settings-registration">Settings Registration</name>
        <t indent="0" pn="section-8.1-1">This document specifies two settings. The entries in the following table are
registered in the "HTTP/3 Settings" registry established in <xref target="HTTP3" format="default" sectionFormat="of" derivedContent="HTTP/3"/>.</t>
        <table align="center" pn="table-1">
          <name slugifiedName="name-additions-to-the-http-3-set">Additions to the HTTP/3 Settings Registry</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Setting Name</th>
              <th align="center" colspan="1" rowspan="1">Code</th>
              <th align="left" colspan="1" rowspan="1">Specification</th>
              <th align="left" colspan="1" rowspan="1">Default</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK_MAX_TABLE_CAPACITY</td>
              <td align="center" colspan="1" rowspan="1">0x01</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="configuration" format="default" sectionFormat="of" derivedContent="Section 5"/></td>
              <td align="left" colspan="1" rowspan="1">0</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK_BLOCKED_STREAMS</td>
              <td align="center" colspan="1" rowspan="1">0x07</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="configuration" format="default" sectionFormat="of" derivedContent="Section 5"/></td>
              <td align="left" colspan="1" rowspan="1">0</td>
            </tr>
          </tbody>
        </table>
        <t indent="0" pn="section-8.1-3">For formatting reasons, the setting names here are abbreviated by removing the
'SETTINGS_' prefix.</t>
      </section>
      <section anchor="stream-type-registration" numbered="true" removeInRFC="false" toc="include" pn="section-8.2">
        <name slugifiedName="name-stream-type-registration">Stream Type Registration</name>
        <t indent="0" pn="section-8.2-1">This document specifies two stream types. The entries in the following table are
registered in the "HTTP/3 Stream Types" registry established in <xref target="HTTP3" format="default" sectionFormat="of" derivedContent="HTTP/3"/>.</t>
        <table align="center" pn="table-2">
          <name slugifiedName="name-additions-to-the-http-3-str">Additions to the HTTP/3 Stream Types Registry</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Stream Type</th>
              <th align="center" colspan="1" rowspan="1">Code</th>
              <th align="left" colspan="1" rowspan="1">Specification</th>
              <th align="left" colspan="1" rowspan="1">Sender</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK Encoder Stream</td>
              <td align="center" colspan="1" rowspan="1">0x02</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="enc-dec-stream-def" format="default" sectionFormat="of" derivedContent="Section 4.2"/></td>
              <td align="left" colspan="1" rowspan="1">Both</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK Decoder Stream</td>
              <td align="center" colspan="1" rowspan="1">0x03</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="enc-dec-stream-def" format="default" sectionFormat="of" derivedContent="Section 4.2"/></td>
              <td align="left" colspan="1" rowspan="1">Both</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section anchor="error-code-registration" numbered="true" removeInRFC="false" toc="include" pn="section-8.3">
        <name slugifiedName="name-error-code-registration">Error Code Registration</name>
        <t indent="0" pn="section-8.3-1">This document specifies three error codes. The entries in the following table
are registered in the "HTTP/3 Error Codes" registry established in <xref target="HTTP3" format="default" sectionFormat="of" derivedContent="HTTP/3"/>.</t>
        <table align="center" pn="table-3">
          <name slugifiedName="name-additions-to-the-http-3-err">Additions to the HTTP/3 Error Codes Registry</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Name</th>
              <th align="left" colspan="1" rowspan="1">Code</th>
              <th align="left" colspan="1" rowspan="1">Description</th>
              <th align="left" colspan="1" rowspan="1">Specification</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK_DECOMPRESSION_FAILED</td>
              <td align="left" colspan="1" rowspan="1">0x0200</td>
              <td align="left" colspan="1" rowspan="1">Decoding of a field section failed</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="error-handling" format="default" sectionFormat="of" derivedContent="Section 6"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK_ENCODER_STREAM_ERROR</td>
              <td align="left" colspan="1" rowspan="1">0x0201</td>
              <td align="left" colspan="1" rowspan="1">Error on the encoder stream</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="error-handling" format="default" sectionFormat="of" derivedContent="Section 6"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">QPACK_DECODER_STREAM_ERROR</td>
              <td align="left" colspan="1" rowspan="1">0x0202</td>
              <td align="left" colspan="1" rowspan="1">Error on the decoder stream</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="error-handling" format="default" sectionFormat="of" derivedContent="Section 6"/></td>
            </tr>
          </tbody>
        </table>
      </section>
    </section>
  </middle>
  <back>
    <displayreference target="HTTP2" to="HTTP/2"/>
    <displayreference target="HTTP3" to="HTTP/3"/>
    <references pn="section-9">
      <name slugifiedName="name-references">References</name>
      <references pn="section-9.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="HTTP" target="https://www.rfc-editor.org/info/rfc9110" quoteTitle="true" derivedAnchor="HTTP">
          <front>
            <title>HTTP Semantics</title>
            <author fullname="Roy T. Fielding" initials="R" surname="Fielding" role="editor">
              <organization showOnFrontPage="true">Adobe</organization>
            </author>
            <author fullname="Mark Nottingham" initials="M" surname="Nottingham" role="editor">
              <organization showOnFrontPage="true">Fastly</organization>
            </author>
            <author fullname="Julian Reschke" initials="J" surname="Reschke" role="editor">
              <organization showOnFrontPage="true">greenbytes GmbH</organization>
            </author>
            <date month="June" year="2022"/>
            <abstract>
              <t indent="0">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 RFCs 2818, 7231, 7232,
   7233, 7235, 7538, 7615, 7694, and portions of 7230.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="97"/>
          <seriesInfo name="RFC" value="9110"/>
          <seriesInfo name="DOI" value="10.17487/RFC9110"/>
        </reference>
        <reference anchor="HTTP3" target="https://www.rfc-editor.org/info/rfc9114" quoteTitle="true" derivedAnchor="HTTP/3">
          <front>
            <title>HTTP/3</title>
            <author initials="M." surname="Bishop" fullname="Mike Bishop" role="editor">
              <organization showOnFrontPage="true">Akamai Technologies</organization>
            </author>
            <date year="2022" month="June"/>
          </front>
          <seriesInfo name="RFC" value="9114"/>
          <seriesInfo name="DOI" value="10.17487/RFC9114"/>
        </reference>
        <reference anchor="QUIC-TRANSPORT" target="https://www.rfc-editor.org/info/rfc9000" quoteTitle="true" derivedAnchor="QUIC-TRANSPORT">
          <front>
            <title>QUIC: A UDP-Based Multiplexed and Secure Transport</title>
            <author fullname="J. Iyengar" initials="J." role="editor" surname="Iyengar">
              <organization showOnFrontPage="true"/>
            </author>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="May" year="2021"/>
            <abstract>
              <t indent="0">This document defines the core of the QUIC transport protocol.  QUIC provides applications with flow-controlled streams for structured communication, low-latency connection establishment, and network path migration. QUIC includes security measures that ensure confidentiality, integrity, and availability in a range of deployment circumstances.  Accompanying documents describe the integration of TLS for key negotiation, loss detection, and an exemplary congestion control algorithm.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9000"/>
          <seriesInfo name="DOI" value="10.17487/RFC9000"/>
        </reference>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="March" year="1997"/>
            <abstract>
              <t indent="0">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="RFC2360" target="https://www.rfc-editor.org/info/rfc2360" quoteTitle="true" derivedAnchor="RFC2360">
          <front>
            <title>Guide for Internet Standards Writers</title>
            <author fullname="G. Scott" initials="G." surname="Scott">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="June" year="1998"/>
            <abstract>
              <t indent="0">This document is a guide for Internet standard writers.  It defines those characteristics that make standards coherent, unambiguous, and easy to interpret.  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="22"/>
          <seriesInfo name="RFC" value="2360"/>
          <seriesInfo name="DOI" value="10.17487/RFC2360"/>
        </reference>
        <reference anchor="RFC7541" target="https://www.rfc-editor.org/info/rfc7541" quoteTitle="true" derivedAnchor="RFC7541">
          <front>
            <title>HPACK: Header Compression for HTTP/2</title>
            <author fullname="R. Peon" initials="R." surname="Peon">
              <organization showOnFrontPage="true"/>
            </author>
            <author fullname="H. Ruellan" initials="H." surname="Ruellan">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="May" year="2015"/>
            <abstract>
              <t indent="0">This specification defines HPACK, a compression format for efficiently representing HTTP header fields, to be used in HTTP/2.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7541"/>
          <seriesInfo name="DOI" value="10.17487/RFC7541"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="May" year="2017"/>
            <abstract>
              <t indent="0">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>
      </references>
      <references pn="section-9.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="CRIME" target="http://en.wikipedia.org/w/index.php?title=CRIME&amp;oldid=660948120" quoteTitle="true" derivedAnchor="CRIME">
          <front>
            <title>CRIME</title>
            <author>
              <organization showOnFrontPage="true">Wikipedia</organization>
            </author>
            <date year="2015" month="May"/>
          </front>
        </reference>
        <reference anchor="HTTP2" target="https://www.rfc-editor.org/info/rfc9113" quoteTitle="true" derivedAnchor="HTTP/2">
          <front>
            <title>HTTP/2</title>
            <author initials="M." surname="Thomson" fullname="Martin Thomson" role="editor"/>
            <author initials="C." surname="Benfield" fullname="Cory Benfield" role="editor"/>
            <date year="2022" month="June"/>
          </front>
          <seriesInfo name="RFC" value="9113"/>
          <seriesInfo name="DOI" value="10.17487/RFC9113"/>
        </reference>
        <reference anchor="PETAL" target="http://www.pdl.cmu.edu/PDL-FTP/associated/CMU-PDL-13-106.pdf" quoteTitle="true" derivedAnchor="PETAL">
          <front>
            <title>PETAL: Preset Encoding Table Information Leakage</title>
            <author initials="J." surname="Tan" fullname="Jiaqi Tan">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Nahata" fullname="Jayvardhan Nahata">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2013" month="April"/>
          </front>
        </reference>
        <reference anchor="RFC1951" target="https://www.rfc-editor.org/info/rfc1951" quoteTitle="true" derivedAnchor="RFC1951">
          <front>
            <title>DEFLATE Compressed Data Format Specification version 1.3</title>
            <author fullname="P. Deutsch" initials="P." surname="Deutsch">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="May" year="1996"/>
            <abstract>
              <t indent="0">This specification defines a lossless compressed data format that compresses data using a combination of the LZ77 algorithm and Huffman coding, with efficiency comparable to the best currently available general-purpose compression methods.  This memo provides information for the Internet community.  This memo does not specify an Internet standard of any kind.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="1951"/>
          <seriesInfo name="DOI" value="10.17487/RFC1951"/>
        </reference>
        <reference anchor="RFC6454" target="https://www.rfc-editor.org/info/rfc6454" quoteTitle="true" derivedAnchor="RFC6454">
          <front>
            <title>The Web Origin Concept</title>
            <author fullname="A. Barth" initials="A." surname="Barth">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="December" year="2011"/>
            <abstract>
              <t indent="0">This document defines the concept of an "origin", which is often used as the scope of authority or privilege by user agents.  Typically, user agents isolate content retrieved from different origins to prevent malicious web site operators from interfering with the operation of benign web sites.  In addition to outlining the principles that underlie the concept of origin, this document details how to determine the origin of a URI and how to serialize an origin into a string.  It also defines an HTTP header field, named "Origin", that indicates which origins are associated with an HTTP request.   [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6454"/>
          <seriesInfo name="DOI" value="10.17487/RFC6454"/>
        </reference>
        <reference anchor="TLS" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="TLS">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol.  TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961.  This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
      </references>
    </references>
    <section anchor="static-table" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-static-table-2">Static Table</name>
      <t indent="0" pn="section-appendix.a-1">This table was generated by analyzing actual Internet traffic in 2018 and
including the most common header fields, after filtering out some unsupported
and non-standard values. Due to this methodology, some of the entries may be
inconsistent or appear multiple times with similar but not identical values. The
order of the entries is optimized to encode the most common header fields with
the smallest number of bytes.</t>
      <table align="center" pn="table-4">
        <name slugifiedName="name-static-table-3">Static Table</name>
        <thead>
          <tr>
            <th align="left" colspan="1" rowspan="1">Index</th>
            <th align="left" colspan="1" rowspan="1">Name</th>
            <th align="left" colspan="1" rowspan="1">Value</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left" colspan="1" rowspan="1">0</td>
            <td align="left" colspan="1" rowspan="1">:authority</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">1</td>
            <td align="left" colspan="1" rowspan="1">:path</td>
            <td align="left" colspan="1" rowspan="1">/</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">2</td>
            <td align="left" colspan="1" rowspan="1">age</td>
            <td align="left" colspan="1" rowspan="1">0</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">3</td>
            <td align="left" colspan="1" rowspan="1">content-disposition</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">4</td>
            <td align="left" colspan="1" rowspan="1">content-length</td>
            <td align="left" colspan="1" rowspan="1">0</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">5</td>
            <td align="left" colspan="1" rowspan="1">cookie</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">6</td>
            <td align="left" colspan="1" rowspan="1">date</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">7</td>
            <td align="left" colspan="1" rowspan="1">etag</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">8</td>
            <td align="left" colspan="1" rowspan="1">if-modified-since</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">9</td>
            <td align="left" colspan="1" rowspan="1">if-none-match</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">10</td>
            <td align="left" colspan="1" rowspan="1">last-modified</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">11</td>
            <td align="left" colspan="1" rowspan="1">link</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">12</td>
            <td align="left" colspan="1" rowspan="1">location</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">13</td>
            <td align="left" colspan="1" rowspan="1">referer</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">14</td>
            <td align="left" colspan="1" rowspan="1">set-cookie</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">15</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">CONNECT</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">16</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">DELETE</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">17</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">GET</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">18</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">HEAD</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">19</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">OPTIONS</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">20</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">POST</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">21</td>
            <td align="left" colspan="1" rowspan="1">:method</td>
            <td align="left" colspan="1" rowspan="1">PUT</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">22</td>
            <td align="left" colspan="1" rowspan="1">:scheme</td>
            <td align="left" colspan="1" rowspan="1">http</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">23</td>
            <td align="left" colspan="1" rowspan="1">:scheme</td>
            <td align="left" colspan="1" rowspan="1">https</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">24</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">103</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">25</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">200</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">26</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">304</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">27</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">404</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">28</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">503</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">29</td>
            <td align="left" colspan="1" rowspan="1">accept</td>
            <td align="left" colspan="1" rowspan="1">*/*</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">30</td>
            <td align="left" colspan="1" rowspan="1">accept</td>
            <td align="left" colspan="1" rowspan="1">application/dns-message</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">31</td>
            <td align="left" colspan="1" rowspan="1">accept-encoding</td>
            <td align="left" colspan="1" rowspan="1">gzip, deflate, br</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">32</td>
            <td align="left" colspan="1" rowspan="1">accept-ranges</td>
            <td align="left" colspan="1" rowspan="1">bytes</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">33</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-headers</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">34</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-headers</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">35</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-origin</td>
            <td align="left" colspan="1" rowspan="1">*</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">36</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
            <td align="left" colspan="1" rowspan="1">max-age=0</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">37</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
            <td align="left" colspan="1" rowspan="1">max-age=2592000</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">38</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
            <td align="left" colspan="1" rowspan="1">max-age=604800</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">39</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
            <td align="left" colspan="1" rowspan="1">no-cache</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">40</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
            <td align="left" colspan="1" rowspan="1">no-store</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">41</td>
            <td align="left" colspan="1" rowspan="1">cache-control</td>
            <td align="left" colspan="1" rowspan="1">public, max-age=31536000</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">42</td>
            <td align="left" colspan="1" rowspan="1">content-encoding</td>
            <td align="left" colspan="1" rowspan="1">br</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">43</td>
            <td align="left" colspan="1" rowspan="1">content-encoding</td>
            <td align="left" colspan="1" rowspan="1">gzip</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">44</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">application/dns-message</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">45</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">application/javascript</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">46</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">application/json</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">47</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">application/x-www-form-urlencoded</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">48</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">image/gif</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">49</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">image/jpeg</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">50</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">image/png</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">51</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">text/css</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">52</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">text/html; charset=utf-8</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">53</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">text/plain</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">54</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
            <td align="left" colspan="1" rowspan="1">text/plain;charset=utf-8</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">55</td>
            <td align="left" colspan="1" rowspan="1">range</td>
            <td align="left" colspan="1" rowspan="1">bytes=0-</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">56</td>
            <td align="left" colspan="1" rowspan="1">strict-transport-security</td>
            <td align="left" colspan="1" rowspan="1">max-age=31536000</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">57</td>
            <td align="left" colspan="1" rowspan="1">strict-transport-security</td>
            <td align="left" colspan="1" rowspan="1">max-age=31536000; includesubdomains</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">58</td>
            <td align="left" colspan="1" rowspan="1">strict-transport-security</td>
            <td align="left" colspan="1" rowspan="1">max-age=31536000; includesubdomains; preload</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">59</td>
            <td align="left" colspan="1" rowspan="1">vary</td>
            <td align="left" colspan="1" rowspan="1">accept-encoding</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">60</td>
            <td align="left" colspan="1" rowspan="1">vary</td>
            <td align="left" colspan="1" rowspan="1">origin</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">61</td>
            <td align="left" colspan="1" rowspan="1">x-content-type-options</td>
            <td align="left" colspan="1" rowspan="1">nosniff</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">62</td>
            <td align="left" colspan="1" rowspan="1">x-xss-protection</td>
            <td align="left" colspan="1" rowspan="1">1; mode=block</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">63</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">100</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">64</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">204</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">65</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">206</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">66</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">302</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">67</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">400</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">68</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">403</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">69</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">421</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">70</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">425</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">71</td>
            <td align="left" colspan="1" rowspan="1">:status</td>
            <td align="left" colspan="1" rowspan="1">500</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">72</td>
            <td align="left" colspan="1" rowspan="1">accept-language</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">73</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-credentials</td>
            <td align="left" colspan="1" rowspan="1">FALSE</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">74</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-credentials</td>
            <td align="left" colspan="1" rowspan="1">TRUE</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">75</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-headers</td>
            <td align="left" colspan="1" rowspan="1">*</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">76</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-methods</td>
            <td align="left" colspan="1" rowspan="1">get</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">77</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-methods</td>
            <td align="left" colspan="1" rowspan="1">get, post, options</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">78</td>
            <td align="left" colspan="1" rowspan="1">access-control-allow-methods</td>
            <td align="left" colspan="1" rowspan="1">options</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">79</td>
            <td align="left" colspan="1" rowspan="1">access-control-expose-headers</td>
            <td align="left" colspan="1" rowspan="1">content-length</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">80</td>
            <td align="left" colspan="1" rowspan="1">access-control-request-headers</td>
            <td align="left" colspan="1" rowspan="1">content-type</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">81</td>
            <td align="left" colspan="1" rowspan="1">access-control-request-method</td>
            <td align="left" colspan="1" rowspan="1">get</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">82</td>
            <td align="left" colspan="1" rowspan="1">access-control-request-method</td>
            <td align="left" colspan="1" rowspan="1">post</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">83</td>
            <td align="left" colspan="1" rowspan="1">alt-svc</td>
            <td align="left" colspan="1" rowspan="1">clear</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">84</td>
            <td align="left" colspan="1" rowspan="1">authorization</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">85</td>
            <td align="left" colspan="1" rowspan="1">content-security-policy</td>
            <td align="left" colspan="1" rowspan="1">script-src 'none'; object-src 'none'; base-uri 'none'</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">86</td>
            <td align="left" colspan="1" rowspan="1">early-data</td>
            <td align="left" colspan="1" rowspan="1">1</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">87</td>
            <td align="left" colspan="1" rowspan="1">expect-ct</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">88</td>
            <td align="left" colspan="1" rowspan="1">forwarded</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">89</td>
            <td align="left" colspan="1" rowspan="1">if-range</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">90</td>
            <td align="left" colspan="1" rowspan="1">origin</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">91</td>
            <td align="left" colspan="1" rowspan="1">purpose</td>
            <td align="left" colspan="1" rowspan="1">prefetch</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">92</td>
            <td align="left" colspan="1" rowspan="1">server</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">93</td>
            <td align="left" colspan="1" rowspan="1">timing-allow-origin</td>
            <td align="left" colspan="1" rowspan="1">*</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">94</td>
            <td align="left" colspan="1" rowspan="1">upgrade-insecure-requests</td>
            <td align="left" colspan="1" rowspan="1">1</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">95</td>
            <td align="left" colspan="1" rowspan="1">user-agent</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">96</td>
            <td align="left" colspan="1" rowspan="1">x-forwarded-for</td>
            <td align="left" colspan="1" rowspan="1"/>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">97</td>
            <td align="left" colspan="1" rowspan="1">x-frame-options</td>
            <td align="left" colspan="1" rowspan="1">deny</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">98</td>
            <td align="left" colspan="1" rowspan="1">x-frame-options</td>
            <td align="left" colspan="1" rowspan="1">sameorigin</td>
          </tr>
        </tbody>
      </table>
      <t indent="0" pn="section-appendix.a-3">Any line breaks that appear within field names or values are due to formatting.</t>
    </section>
    <section anchor="encoding-and-decoding-examples" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-encoding-and-decoding-examp">Encoding and Decoding Examples</name>
      <t indent="0" pn="section-appendix.b-1">The following examples represent a series of exchanges between an encoder and a
decoder.  The exchanges are designed to exercise most QPACK instructions and
highlight potentially common patterns and their impact on dynamic table state.
The encoder sends three encoded field sections containing one field line each,
as well as two speculative inserts that are not referenced.</t>
      <t indent="0" pn="section-appendix.b-2">The state of the encoder's dynamic table is shown, along with its
current size.  Each entry is shown with the Absolute Index of the entry (Abs),
the current number of outstanding encoded field sections with references to that
entry (Ref), along with the name and value.  Entries above the 'acknowledged'
line have been acknowledged by the decoder.</t>
      <section anchor="literal-field-line-with-name-reference" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.1">
        <name slugifiedName="name-literal-field-line-with-name-">Literal Field Line with Name Reference</name>
        <t indent="0" pn="section-appendix.b.1-1">The encoder sends an encoded field section containing a literal representation
of a field with a static name reference.</t>
        <artwork align="left" pn="section-appendix.b.1-2">
Data                | Interpretation
                             | Encoder's Dynamic Table

Stream: 0
0000                | Required Insert Count = 0, Base = 0
510b 2f69 6e64 6578 | Literal Field Line with Name Reference
2e68 746d 6c        |  Static Table, Index=1
                    |  (:path=/index.html)

                              Abs Ref Name        Value
                              ^-- acknowledged --^
                              Size=0
</artwork>
      </section>
      <section anchor="dynamic-table" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.2">
        <name slugifiedName="name-dynamic-table-2">Dynamic Table</name>
        <t indent="0" pn="section-appendix.b.2-1">The encoder sets the dynamic table capacity, inserts a header with a dynamic
name reference, then sends a potentially blocking, encoded field section
referencing this new entry.  The decoder acknowledges processing the encoded
field section, which implicitly acknowledges all dynamic table insertions up to
the Required Insert Count.</t>
        <artwork align="left" pn="section-appendix.b.2-2">
Stream: Encoder
3fbd01              | Set Dynamic Table Capacity=220
c00f 7777 772e 6578 | Insert With Name Reference
616d 706c 652e 636f | Static Table, Index=0
6d                  |  (:authority=www.example.com)
c10c 2f73 616d 706c | Insert With Name Reference
652f 7061 7468      |  Static Table, Index=1
                    |  (:path=/sample/path)

                              Abs Ref Name        Value
                              ^-- acknowledged --^
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                              Size=106

Stream: 4
0381                | Required Insert Count = 2, Base = 0
10                  | Indexed Field Line With Post-Base Index
                    |  Absolute Index = Base(0) + Index(0) = 0
                    |  (:authority=www.example.com)
11                  | Indexed Field Line With Post-Base Index
                    |  Absolute Index = Base(0) + Index(1) = 1
                    |  (:path=/sample/path)

                              Abs Ref Name        Value
                              ^-- acknowledged --^
                               0   1  :authority  www.example.com
                               1   1  :path       /sample/path
                              Size=106

Stream: Decoder
84                  | Section Acknowledgment (stream=4)

                              Abs Ref Name        Value
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                              ^-- acknowledged --^
                              Size=106
</artwork>
      </section>
      <section anchor="speculative-insert" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.3">
        <name slugifiedName="name-speculative-insert">Speculative Insert</name>
        <t indent="0" pn="section-appendix.b.3-1">The encoder inserts a header into the dynamic table with a literal name.
The decoder acknowledges receipt of the entry.  The encoder does not send
any encoded field sections.</t>
        <artwork align="left" pn="section-appendix.b.3-2">
Stream: Encoder
4a63 7573 746f 6d2d | Insert With Literal Name
6b65 790c 6375 7374 |  (custom-key=custom-value)
6f6d 2d76 616c 7565 |

                              Abs Ref Name        Value
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                              ^-- acknowledged --^
                               2   0  custom-key  custom-value
                              Size=160

Stream: Decoder
01                  | Insert Count Increment (1)

                              Abs Ref Name        Value
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                               2   0  custom-key  custom-value
                              ^-- acknowledged --^
                              Size=160

</artwork>
      </section>
      <section anchor="duplicate-instruction-stream-cancellation" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.4">
        <name slugifiedName="name-duplicate-instruction-strea">Duplicate Instruction, Stream Cancellation</name>
        <t indent="0" pn="section-appendix.b.4-1">The encoder duplicates an existing entry in the dynamic table, then sends an
encoded field section referencing the dynamic table entries including the
duplicated entry.  The packet containing the encoder stream data is delayed.
Before the packet arrives, the decoder cancels the stream and notifies the
encoder that the encoded field section was not processed.</t>
        <artwork align="left" pn="section-appendix.b.4-2">
Stream: Encoder
02                  | Duplicate (Relative Index = 2)
                    |  Absolute Index =
                    |   Insert Count(3) - Index(2) - 1 = 0

                              Abs Ref Name        Value
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                               2   0  custom-key  custom-value
                              ^-- acknowledged --^
                               3   0  :authority  www.example.com
                              Size=217

Stream: 8
0500                | Required Insert Count = 4, Base = 4
80                  | Indexed Field Line, Dynamic Table
                    |  Absolute Index = Base(4) - Index(0) - 1 = 3
                    |  (:authority=www.example.com)
c1                  | Indexed Field Line, Static Table Index = 1
                    |  (:path=/)
81                  | Indexed Field Line, Dynamic Table
                    |  Absolute Index = Base(4) - Index(1) - 1 = 2
                    |  (custom-key=custom-value)

                              Abs Ref Name        Value
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                               2   1  custom-key  custom-value
                              ^-- acknowledged --^
                               3   1  :authority  www.example.com
                              Size=217

Stream: Decoder
48                  | Stream Cancellation (Stream=8)

                              Abs Ref Name        Value
                               0   0  :authority  www.example.com
                               1   0  :path       /sample/path
                               2   0  custom-key  custom-value
                              ^-- acknowledged --^
                               3   0  :authority  www.example.com
                              Size=217
</artwork>
      </section>
      <section anchor="dynamic-table-insert-eviction" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.5">
        <name slugifiedName="name-dynamic-table-insert-evicti">Dynamic Table Insert, Eviction</name>
        <t indent="0" pn="section-appendix.b.5-1">The encoder inserts another header into the dynamic table, which evicts the
oldest entry.  The encoder does not send any encoded field sections.</t>
        <artwork align="left" pn="section-appendix.b.5-2">
Stream: Encoder
810d 6375 7374 6f6d | Insert With Name Reference
2d76 616c 7565 32   |  Dynamic Table, Relative Index = 1
                    |  Absolute Index =
                    |   Insert Count(4) - Index(1) - 1 = 2
                    |  (custom-key=custom-value2)

                              Abs Ref Name        Value
                               1   0  :path       /sample/path
                               2   0  custom-key  custom-value
                              ^-- acknowledged --^
                               3   0  :authority  www.example.com
                               4   0  custom-key  custom-value2
                              Size=215
</artwork>
      </section>
    </section>
    <section anchor="sample-single-pass-encoding-algorithm" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-sample-single-pass-encoding">Sample Single-Pass Encoding Algorithm</name>
      <t indent="0" pn="section-appendix.c-1">Pseudocode for single-pass encoding, excluding handling of duplicates,
non-blocking mode, available encoder stream flow control and reference tracking.</t>
      <sourcecode type="pseudocode" markers="false" pn="section-appendix.c-2">
# Helper functions:
# ====
# Encode an integer with the specified prefix and length
encodeInteger(buffer, prefix, value, prefixLength)

# Encode a dynamic table insert instruction with optional static
# or dynamic name index (but not both)
encodeInsert(buffer, staticNameIndex, dynamicNameIndex, fieldLine)

# Encode a static index reference
encodeStaticIndexReference(buffer, staticIndex)

# Encode a dynamic index reference relative to Base
encodeDynamicIndexReference(buffer, dynamicIndex, base)

# Encode a literal with an optional static name index
encodeLiteral(buffer, staticNameIndex, fieldLine)

# Encode a literal with a dynamic name index relative to Base
encodeDynamicLiteral(buffer, dynamicNameIndex, base, fieldLine)

# Encoding Algorithm
# ====
base = dynamicTable.getInsertCount()
requiredInsertCount = 0
for line in fieldLines:
  staticIndex = staticTable.findIndex(line)
  if staticIndex is not None:
    encodeStaticIndexReference(streamBuffer, staticIndex)
    continue

  dynamicIndex = dynamicTable.findIndex(line)
  if dynamicIndex is None:
    # No matching entry.  Either insert+index or encode literal
    staticNameIndex = staticTable.findName(line.name)
    if staticNameIndex is None:
       dynamicNameIndex = dynamicTable.findName(line.name)

    if shouldIndex(line) and dynamicTable.canIndex(line):
      encodeInsert(encoderBuffer, staticNameIndex,
                   dynamicNameIndex, line)
      dynamicIndex = dynamicTable.add(line)

  if dynamicIndex is None:
    # Could not index it, literal
    if dynamicNameIndex is not None:
      # Encode literal with dynamic name, possibly above Base
      encodeDynamicLiteral(streamBuffer, dynamicNameIndex,
                           base, line)
      requiredInsertCount = max(requiredInsertCount,
                                dynamicNameIndex)
    else:
      # Encodes a literal with a static name or literal name
      encodeLiteral(streamBuffer, staticNameIndex, line)
  else:
    # Dynamic index reference
    assert(dynamicIndex is not None)
    requiredInsertCount = max(requiredInsertCount, dynamicIndex)
    # Encode dynamicIndex, possibly above Base
    encodeDynamicIndexReference(streamBuffer, dynamicIndex, base)

# encode the prefix
if requiredInsertCount == 0:
  encodeInteger(prefixBuffer, 0x00, 0, 8)
  encodeInteger(prefixBuffer, 0x00, 0, 7)
else:
  wireRIC = (
    requiredInsertCount
    % (2 * getMaxEntries(maxTableCapacity))
  ) + 1;
  encodeInteger(prefixBuffer, 0x00, wireRIC, 8)
  if base &gt;= requiredInsertCount:
    encodeInteger(prefixBuffer, 0x00,
                  base - requiredInsertCount, 7)
  else:
    encodeInteger(prefixBuffer, 0x80,
                  requiredInsertCount - base - 1, 7)

return encoderBuffer, prefixBuffer + streamBuffer
</sourcecode>
    </section>
    <section numbered="false" anchor="acknowledgments" removeInRFC="false" toc="include" pn="section-appendix.d">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.d-1">The IETF QUIC Working Group received an enormous amount of support from many
people.</t>
      <t indent="0" pn="section-appendix.d-2">The compression design team did substantial work exploring the problem space and
influencing the initial draft version of this document.  The contributions of
design team members <contact fullname="Roberto Peon"/>, <contact fullname="Martin Thomson"/>, and
<contact fullname="Dmitri Tikhonov"/> are gratefully acknowledged.</t>
      <t indent="0" pn="section-appendix.d-3">The following people also provided substantial contributions to this document:</t>
      <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-appendix.d-4">
        <li pn="section-appendix.d-4.1">
          <t indent="0" pn="section-appendix.d-4.1.1"><contact fullname="Bence Beky"/></t>
        </li>
        <li pn="section-appendix.d-4.2">
          <t indent="0" pn="section-appendix.d-4.2.1"><contact fullname="Alessandro Ghedini"/></t>
        </li>
        <li pn="section-appendix.d-4.3">
          <t indent="0" pn="section-appendix.d-4.3.1"><contact fullname="Ryan Hamilton"/></t>
        </li>
        <li pn="section-appendix.d-4.4">
          <t indent="0" pn="section-appendix.d-4.4.1"><contact fullname="Robin Marx"/></t>
        </li>
        <li pn="section-appendix.d-4.5">
          <t indent="0" pn="section-appendix.d-4.5.1"><contact fullname="Patrick McManus"/></t>
        </li>
        <li pn="section-appendix.d-4.6">
          <t indent="0" pn="section-appendix.d-4.6.1"><contact asciiFullname="Kazuho Oku" fullname="奥 一穂"/></t>
        </li>
        <li pn="section-appendix.d-4.7">
          <t indent="0" pn="section-appendix.d-4.7.1"><contact fullname="Lucas Pardue"/></t>
        </li>
        <li pn="section-appendix.d-4.8">
          <t indent="0" pn="section-appendix.d-4.8.1"><contact fullname="Biren Roy"/></t>
        </li>
        <li pn="section-appendix.d-4.9">
          <t indent="0" pn="section-appendix.d-4.9.1"><contact fullname="Ian Swett"/></t>
        </li>
      </ul>
      <t indent="0" pn="section-appendix.d-5">This document draws heavily on the text of <xref target="RFC7541" format="default" sectionFormat="of" derivedContent="RFC7541"/>.  The indirect input of
those authors is also gratefully acknowledged.</t>
      <t indent="0" pn="section-appendix.d-6"><contact fullname="Buck Krasic"/>'s contribution was supported by Google during his employment
there.</t>
      <t indent="0" pn="section-appendix.d-7">A portion of <contact fullname="Mike Bishop"/>'s contribution was supported by Microsoft during
his employment there.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.e">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author initials="C." surname="Krasic" fullname="Charles 'Buck' Krasic">
        <organization showOnFrontPage="true"/>
        <address>
          <email>krasic@acm.org</email>
        </address>
      </author>
      <author initials="M." surname="Bishop" fullname="Mike Bishop">
        <organization showOnFrontPage="true">Akamai Technologies</organization>
        <address>
          <email>mbishop@evequefou.be</email>
        </address>
      </author>
      <author initials="A." surname="Frindell" fullname="Alan Frindell" role="editor">
        <organization showOnFrontPage="true">Facebook</organization>
        <address>
          <email>afrind@fb.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
