Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.42 KB

File metadata and controls

23 lines (18 loc) · 1.42 KB
title slug l10n
应用层协议协商(ALPN)
Glossary/ALPN
sourceCommit
ada5fa5ef15eadd44b549ecf906423b4a2092f34

{{GlossarySidebar}}

应用层协议协商Application-Layer Protocol Negotiation,简称 ALPN)是由 RFC 7301 定义的一个 {{Glossary("TLS")}} 扩展,用于在协商加密连接时识别应用层协议,避免了额外的往返通讯开销。

协议 标识符字节序列
{{Glossary("HTTP", "HTTP/1.1")}} 0x68 0x74 0x74 0x70 0x2F 0x31 0x2E 0x31(“http/1.1”)
{{Glossary("HTTP 2", "HTTP/2")}} 0x68 0x32(“h2”)
基于明文 {{Glossary("TCP")}} 的 HTTP/2 协议 0x68 0x32 0x63(“h2c”)
{{Glossary("HTTP 3", "HTTP/3")}} 0x68 0x33(“h3”)

参见