<?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-httpbis-h3-websockets-04" indexInclude="true" ipr="trust200902" number="9220" prepTime="2022-06-08T16:28:11" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-httpbis-h3-websockets-04" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9220" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title>Bootstrapping WebSockets with HTTP/3</title>
    <seriesInfo name="RFC" value="9220" stream="IETF"/>
    <author initials="R." surname="Hamilton" fullname="Ryan Hamilton">
      <organization showOnFrontPage="true">Google</organization>
      <address>
        <email>rch@google.com</email>
      </address>
    </author>
    <date month="06" year="2022"/>
    <area>ART</area>
    <workgroup>HTTP</workgroup>
    <keyword>extended connect</keyword>
    <keyword>42</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">The mechanism for running the WebSocket Protocol over a single stream
of an HTTP/2 connection is equally applicable to HTTP/3, but the
HTTP-version-specific details need to be specified. This document describes
how the mechanism is adapted for HTTP/3.</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/rfc9220" 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>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" keepWithNext="true" 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-conventions-and-definitions">Conventions and Definitions</xref></t>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" keepWithNext="true" 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-websockets-upgrade-over-htt">WebSockets Upgrade over HTTP/3</xref></t>
          </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-security-considerations">Security Considerations</xref></t>
          </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-iana-considerations">IANA Considerations</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-normative-references">Normative References</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</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">"<xref target="RFC8441" format="title" sectionFormat="of" derivedContent="Bootstrapping WebSockets with HTTP/2"/>" <xref target="RFC8441" format="default" sectionFormat="of" derivedContent="RFC8441"/> defines an extension
to HTTP/2 <xref target="HTTP2" format="default" sectionFormat="of" derivedContent="HTTP/2"/> that is also useful in HTTP/3 <xref target="HTTP3" format="default" sectionFormat="of" derivedContent="HTTP/3"/>.
This extension makes use of an HTTP/2 setting.  <xref section="A.3" sectionFormat="of" target="HTTP3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9114#appendix-A.3" derivedContent="HTTP/3"/>
gives some guidance on what changes (if any) are appropriate when porting
settings from HTTP/2 to HTTP/3.</t>
    </section>
    <section anchor="conventions-and-definitions" numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-conventions-and-definitions">Conventions and Definitions</name>
      <t indent="0" pn="section-2-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>
    </section>
    <section anchor="websockets-upgrade-over-http3" numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-websockets-upgrade-over-htt">WebSockets Upgrade over HTTP/3</name>
      <t indent="0" pn="section-3-1"><xref target="RFC8441" format="default" sectionFormat="of" derivedContent="RFC8441"/> defines a mechanism for running the WebSocket Protocol
<xref target="RFC6455" format="default" sectionFormat="of" derivedContent="RFC6455"/> over a single stream of an HTTP/2 connection. It defines
an Extended CONNECT method that specifies a new ":protocol"
pseudo-header field and new semantics for the ":path" and ":authority"
pseudo-header fields. It also defines a new HTTP/2 setting sent by a server to
allow the client to use  Extended CONNECT.</t>
      <t indent="0" pn="section-3-2">The semantics of the pseudo-header fields and setting are identical to those
in HTTP/2 as defined in <xref target="RFC8441" format="default" sectionFormat="of" derivedContent="RFC8441"/>. <xref section="A.3" sectionFormat="of" target="HTTP3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9114#appendix-A.3" derivedContent="HTTP/3"/> requires that
HTTP/3 settings be registered separately for HTTP/3. The
SETTINGS_ENABLE_CONNECT_PROTOCOL value is 0x08 (decimal 8), as in HTTP/2.</t>
      <t indent="0" pn="section-3-3">If a server advertises support for Extended CONNECT but receives an
Extended CONNECT request with a ":protocol" value that is unknown or is
not supported, the server <bcp14>SHOULD</bcp14> respond to the request with a 501 (Not
Implemented) status code (<xref section="15.6.2" sectionFormat="of" target="HTTP" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9110#section-15.6.2" derivedContent="HTTP"/>). A server <bcp14>MAY</bcp14>
provide more information via a "problem details" response <xref target="RFC7807" format="default" sectionFormat="of" derivedContent="RFC7807"/>.</t>
      <t indent="0" pn="section-3-4">The HTTP/3 stream closure is also analogous to the TCP connection
closure of <xref target="RFC6455" format="default" sectionFormat="of" derivedContent="RFC6455"/>. Orderly TCP-level closures are represented as
a FIN bit on the stream (<xref section="4.4" sectionFormat="of" target="HTTP3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9114#section-4.4" derivedContent="HTTP/3"/>). RST exceptions are
represented with a stream error (<xref section="8" sectionFormat="of" target="HTTP3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9114#section-8" derivedContent="HTTP/3"/>) of type
H3_REQUEST_CANCELLED (<xref section="8.1" sectionFormat="of" target="HTTP3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9114#section-8.1" derivedContent="HTTP/3"/>).</t>
    </section>
    <section anchor="security-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-4-1">This document introduces no new security considerations beyond those
discussed in <xref target="RFC8441" format="default" sectionFormat="of" derivedContent="RFC8441"/>.</t>
    </section>
    <section anchor="iana-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-5">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-5-1">This document registers a new setting in the "HTTP/3 Settings"
registry (<xref section="11.2.2" sectionFormat="of" target="HTTP3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9114#section-11.2.2" derivedContent="HTTP/3"/>).</t>
      <dl spacing="compact" indent="3" newline="false" pn="section-5-2">
        <dt pn="section-5-2.1">
Value:  </dt>
        <dd pn="section-5-2.2">
          <t indent="0" pn="section-5-2.2.1">0x08</t>
        </dd>
        <dt pn="section-5-2.3">
Setting Name:  </dt>
        <dd pn="section-5-2.4">
          <t indent="0" pn="section-5-2.4.1">SETTINGS_ENABLE_CONNECT_PROTOCOL</t>
        </dd>
        <dt pn="section-5-2.5">
Default:  </dt>
        <dd pn="section-5-2.6">
          <t indent="0" pn="section-5-2.6.1">0</t>
        </dd>
        <dt pn="section-5-2.7">
Status:  </dt>
        <dd pn="section-5-2.8">
          <t indent="0" pn="section-5-2.8.1">permanent</t>
        </dd>
        <dt pn="section-5-2.9">
Specification:  </dt>
        <dd pn="section-5-2.10">
          <t indent="0" pn="section-5-2.10.1">This document</t>
        </dd>
        <dt pn="section-5-2.11">
Change Controller:  </dt>
        <dd pn="section-5-2.12">
          <t indent="0" pn="section-5-2.12.1">IETF</t>
        </dd>
        <dt pn="section-5-2.13">
Contact:  </dt>
        <dd pn="section-5-2.14">
          <t indent="0" pn="section-5-2.14.1">HTTP Working Group (ietf-http-wg@w3.org)</t>
        </dd>
      </dl>
    </section>
  </middle>
  <back>
    <displayreference target="HTTP3" to="HTTP/3"/>
    <displayreference target="HTTP2" to="HTTP/2"/>
    <references pn="section-6">
      <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 initials="R" surname="Fielding" fullname="Roy Fielding" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="M" surname="Nottingham" fullname="Mark Nottingham" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="J" surname="Reschke" fullname="Julian Reschke" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2022" month="June"/>
        </front>
        <seriesInfo name="STD" value="97"/>
        <seriesInfo name="RFC" value="9110"/>
        <seriesInfo name="DOI" value="10.17487/RFC9110"/>
      </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">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="C" surname="Benfield" fullname="Cory Benfield" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2022" month="June"/>
        </front>
        <seriesInfo name="RFC" value="9113"/>
        <seriesInfo name="DOI" value="10.17487/RFC9113"/>
      </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"/>
          </author>
          <date year="2022" month="June"/>
        </front>
        <seriesInfo name="RFC" value="9114"/>
        <seriesInfo name="DOI" value="10.17487/RFC9114"/>
      </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 initials="S." surname="Bradner" fullname="S. Bradner">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="1997" month="March"/>
          <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="RFC6455" target="https://www.rfc-editor.org/info/rfc6455" quoteTitle="true" derivedAnchor="RFC6455">
        <front>
          <title>The WebSocket Protocol</title>
          <author initials="I." surname="Fette" fullname="I. Fette">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="A." surname="Melnikov" fullname="A. Melnikov">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2011" month="December"/>
          <abstract>
            <t indent="0">The WebSocket Protocol enables two-way communication between a client running untrusted code in a controlled environment to a remote host that has opted-in to communications from that code.  The security model used for this is the origin-based security model commonly used by web browsers.  The protocol consists of an opening handshake followed by basic message framing, layered over TCP.  The goal of this technology is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections (e.g., using XMLHttpRequest or &lt;iframe&gt;s and long polling).  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6455"/>
        <seriesInfo name="DOI" value="10.17487/RFC6455"/>
      </reference>
      <reference anchor="RFC7807" target="https://www.rfc-editor.org/info/rfc7807" quoteTitle="true" derivedAnchor="RFC7807">
        <front>
          <title>Problem Details for HTTP APIs</title>
          <author initials="M." surname="Nottingham" fullname="M. Nottingham">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="E." surname="Wilde" fullname="E. Wilde">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2016" month="March"/>
          <abstract>
            <t indent="0">This document defines a "problem detail" as a way to carry machine- readable details of errors in a HTTP response to avoid the need to define new error response formats for HTTP APIs.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="7807"/>
        <seriesInfo name="DOI" value="10.17487/RFC7807"/>
      </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 initials="B." surname="Leiba" fullname="B. Leiba">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2017" month="May"/>
          <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>
      <reference anchor="RFC8441" target="https://www.rfc-editor.org/info/rfc8441" quoteTitle="true" derivedAnchor="RFC8441">
        <front>
          <title>Bootstrapping WebSockets with HTTP/2</title>
          <author initials="P." surname="McManus" fullname="P. McManus">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2018" month="September"/>
          <abstract>
            <t indent="0">This document defines a mechanism for running the WebSocket Protocol (RFC 6455) over a single stream of an HTTP/2 connection.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="8441"/>
        <seriesInfo name="DOI" value="10.17487/RFC8441"/>
      </reference>
    </references>
    <section numbered="false" anchor="acknowledgments" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.a-1">This document had reviews and input from many contributors in the IETF HTTP
and QUIC Working Groups, with substantive input from <contact fullname="David Schinazi"/>, <contact fullname="Martin Thomson"/>, <contact fullname="Lucas Pardue"/>, <contact fullname="Mike Bishop"/>, <contact fullname="Dragana Damjanovic"/>, <contact fullname="Mark Nottingham"/>, and <contact fullname="Julian Reschke"/>.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author initials="R." surname="Hamilton" fullname="Ryan Hamilton">
        <organization showOnFrontPage="true">Google</organization>
        <address>
          <email>rch@google.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
