HTTP Working Group | R. Hamilton |
Internet-Draft | |
Intended status: Informational | September 10, 2021 |
Expires: March 14, 2022 |
The mechanism for running the WebSocket Protocol over a single stream of an HTTP/2 connection is equally applicable to HTTP/3, but needs to be separately registered. This document describes the mechanism for HTTP/3.¶
RFC EDITOR: please remove this section before publication ¶
Discussion of this draft takes place on the HTTP working group mailing list (ietf-http-wg@w3.org), which is archived at https://lists.w3.org/Archives/Public/ietf-http-wg/.¶
Working Group information can be found at https://httpwg.org/; source code and issues list for this draft can be found at https://github.com/httpwg/http-extensions/labels/h3-websockets.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress”.¶
This Internet-Draft will expire on March 14, 2022.¶
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
[RFC8441] defines an extension to HTTP/2 which is also useful in HTTP/3. This extension makes use of an HTTP/2 setting. Appendix A.3 of [HTTP3] describes the required updates for HTTP/2 settings to be used with HTTP/3.¶
[RFC8441] defines a mechanism for running the WebSocket Protocol [RFC6455] over a single stream of an HTTP/2 connection. It defines an Extended CONNECT method which 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.¶
The HTTP/3 stream closure is also analogous to the TCP connection closure of [RFC6455]. Orderly TCP-level closures are represented as a FIN bit on the stream (Section 4.2 of [HTTP3]). RST exceptions are represented with an stream error (Section 8 of [HTTP3]) of type H3_REQUEST_CANCELLED (Section 8.1 of [HTTP3])¶
The semantics of the headers and SETTING are identical to those in HTTP/2 as defined [RFC8441]. Appendix A.3 of [HTTP3] requires thatt HTTP/3 settings be registered separately for HTTP/3. The SETTINGS_ENABLE_CONNECT_PROTOCOL value is 0x08 (decimal 8), as in HTTP/2.¶
Setting Name | Value | Specification | Default |
---|---|---|---|
SETTINGS_ENABLE_CONNECT_PROTOCOL | 0x08 | This document | 0 |
TODO acknowledge.¶