没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
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.
资源推荐
资源详情
资源评论


格式:x-rar 资源大小:3.4MB




















格式:rfc822\011 资源大小:84.3KB









Internet Engineering Task Force (IETF)
Request for Comments: 9297
Category: Standards Track
Published: August 2022
ISSN: 2070-1721
D. Schinazi
Google LLC
L. Pardue
Cloudflare
HTTP Datagrams and the Capsule Protocol
Abstract
This document describes HTTP Datagrams, a convention for conveying
multiplexed, potentially unreliable datagrams inside an HTTP
connection.
In HTTP/3, HTTP Datagrams can be sent unreliably using the QUIC
DATAGRAM extension. When the QUIC DATAGRAM frame is unavailable or
undesirable, HTTP Datagrams can be sent using the Capsule Protocol,
which is a more general convention for conveying data in HTTP
connections.
HTTP Datagrams and the Capsule Protocol are intended for use by HTTP
extensions, not applications.
Status of This Memo
This is an Internet Standards Track document.
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.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
https://www.rfc-editor.org/info/rfc9297.
Copyright Notice
Copyright (c) 2022 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 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.
¶
¶
¶
¶
¶
¶
¶
¶
21/05/2024, 17:27
RFC 9297 - HTTP Datagrams and the Capsule Protocol
https://datatracker.ietf.org/doc/html/rfc9297
1/14

Table of Contents
1.Introduction
1.1.Conventions and Definitions
2.HTTP Datagrams
2.1.HTTP/3 Datagrams
2.1.1.The SETTINGS_H3_DATAGRAM HTTP/3 Setting
2.2.HTTP Datagrams Using Capsules
3.Capsules
3.1.HTTP Data Streams
3.2.The Capsule Protocol
3.3.Error Handling
3.4.The Capsule-Protocol Header Field
3.5.The DATAGRAM Capsule
4.Security Considerations
5.IANA Considerations
5.1.HTTP/3 Setting
5.2.HTTP/3 Error Code
5.3.HTTP Header Field Name
5.4.Capsule Types
6.References
6.1.Normative References
6.2.Informative References
Acknowledgments
Authors' Addresses
1. Introduction
HTTP extensions (as defined in Section 16 of [HTTP]) sometimes need
to access underlying transport protocol features such as unreliable
delivery (as offered by [QUIC-DGRAM]) to enable desirable features.
For example, this could allow for the introduction of an unreliable
version of the CONNECT method and the addition of unreliable delivery
to WebSockets [WEBSOCKET].
In Section 2, this document describes HTTP Datagrams, a convention
for conveying bidirectional and potentially unreliable datagrams
inside an HTTP connection, with multiplexing when possible. While
HTTP Datagrams are associated with HTTP requests, they are not a part
of message content. Instead, they are intended for use by HTTP
extensions (such as the CONNECT method) and are compatible with all
versions of HTTP.
When HTTP is running over a transport protocol that supports
unreliable delivery (such as when the QUIC DATAGRAM extension [QUIC-
DGRAM] is available to HTTP/3 [HTTP/3]), HTTP Datagrams can use that
capability.
In Section 3, this document describes the HTTP Capsule Protocol,
which allows the conveyance of HTTP Datagrams using reliable
delivery. This addresses HTTP/3 cases where use of the QUIC DATAGRAM
frame is unavailable or undesirable or where the transport protocol
¶
¶
¶
21/05/2024, 17:27
RFC 9297 - HTTP Datagrams and the Capsule Protocol
https://datatracker.ietf.org/doc/html/rfc9297
2/14

only provides reliable delivery, such as with HTTP/1.1 [HTTP/1.1] or
HTTP/2 [HTTP/2] over TCP [TCP].
1.1. Conventions and Definitions
The key words "
MUST
", "
MUST NOT
", "
REQUIRED
", "
SHALL
", "
SHALL NOT
",
"
SHOULD
", "
SHOULD NOT
", "
RECOMMENDED
", "
NOT RECOMMENDED
", "
MAY
", and
"
OPTIONAL
" in this document are to be interpreted as described in
BCP14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
This document uses terminology from [QUIC].
Where this document defines protocol types, the definition format
uses the notation from Section 1.3 of [QUIC]. Where fields within
types are integers, they are encoded using the variable-length
integer encoding from Section 16 of [QUIC]. Integer values do not
need to be encoded on the minimum number of bytes necessary.
In this document, the term "intermediary" refers to an HTTP
intermediary as defined in Section 3.7 of [HTTP].
2. HTTP Datagrams
HTTP Datagrams are a convention for conveying bidirectional and
potentially unreliable datagrams inside an HTTP connection with
multiplexing when possible. All HTTP Datagrams are associated with an
HTTP request.
When HTTP Datagrams are conveyed on an HTTP/3 connection, the QUIC
DATAGRAM frame can be used to provide demultiplexing and unreliable
delivery; see Section 2.1. Negotiating the use of QUIC DATAGRAM
frames for HTTP Datagrams is achieved via the exchange of HTTP/3
settings; see Section 2.1.1.
When running over HTTP/2, demultiplexing is provided by the HTTP/2
framing layer, but unreliable delivery is unavailable. HTTP Datagrams
are negotiated and conveyed using the Capsule Protocol; see Section
3.5.
When running over HTTP/1.x, requests are strictly serialized in the
connection; therefore, demultiplexing is not available. Unreliable
delivery is likewise not available. HTTP Datagrams are negotiated and
conveyed using the Capsule Protocol; see Section 3.5.
HTTP Datagrams
MUST
only be sent with an association to an HTTP
request that explicitly supports them. For example, existing HTTP
methods GET and POST do not define semantics for associated HTTP
Datagrams; therefore, HTTP Datagrams associated with GET or POST
request streams cannot be sent.
If an HTTP Datagram is received and it is associated with a request
that has no known semantics for HTTP Datagrams, the receiver
MUST
¶
¶
¶
¶
¶
¶
¶
¶
¶
¶
21/05/2024, 17:27
RFC 9297 - HTTP Datagrams and the Capsule Protocol
https://datatracker.ietf.org/doc/html/rfc9297
3/14
剩余13页未读,继续阅读
资源评论


FeelTouchLabs
- 粉丝: 2w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 物联网技术在智能化住宅小区中的应用.docx
- 科研项目管理应重点关注的几个问题及建议.doc
- 通信工程安全操作规程.doc
- PPS-全球最大网络电视营销策划.ppt
- VC++酒店餐饮管理系统毕业设计方案(含源文件).doc
- 浅析互联网背景下的企业市场营销创新.docx
- 面向工程实践的控制类研究生嵌入式课程创新与建设.docx
- 互联网+教育背景下大学英语智慧教学的现状、问题及策略.docx
- 基于木桶理论的图书馆网络安全问题及其解决方案.docx
- 计算机技术的发展趋势研究.docx
- Dngciw全国计算机等级历年考试一级试题(25套).doc
- 云计算技术在计算机网络安全存储中的应用.docx
- 计算机网络技术在现代化气象业务中的应用分析.docx
- 河北职称计算机测验考试操作题步骤修正版【大家论坛】.doc
- 网络媒介审判中的群体极化倾向分析.docx
- JAVA课程方案设计书网吧管理系统.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
