{"id":161178,"date":"2019-10-26T11:00:07","date_gmt":"2019-10-26T03:00:07","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=161178"},"modified":"2019-10-14T14:54:58","modified_gmt":"2019-10-14T06:54:58","slug":"detailed-http-3-protocol","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/detailed-http-3-protocol.html","title":{"rendered":"HTTP 3\u534f\u8bae\u8be6\u89e3"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nHTTP\/3\u53c8\u8fce\u6765\u4e00\u4e2a\u91cc\u7a0b\u7891\uff1a\u8fd1\u65e5Cloudflare\u5b98\u65b9\u5ba3\u5176\u8fb9\u7f18\u7f51\u7edc\u4e0a\u5df2\u5168\u9762\u63d0\u4f9bQUIC\u548cHTTP\/3\u652f\u6301\u3002\u90a3\u4e48HTTP\/3\u53ef\u4ee5\u5e26\u6765\u54ea\u4e9b\u53d8\u5316\u548c\u4f18\u52bf\u5462? \u5bf9Internet\u7684\u7528\u6237\uff0c\u5e76\u4e14\u901a\u8fc7\u6d4f\u89c8\u5668\u548c\u5176\u4ed6\u5ba2\u6237\u7aef\u4e0e\u7ad9\u70b9\u8fdb\u884c\u9ad8\u6548\u4ea4\u4e92\u3002\u53ef\u901a\u8fc7\u4f7f\u7528\u6700\u65b0Chrome Canary\u6d4f\u89c8\u5668\u4ee5HTTP\/3 UDB\u534f\u8bae\u548c\u670d\u52a1\u5668\u4ea4\u4e92\uff0c\u5bf9\u4e8e\u4f7f\u7528\u547d\u4ee4\u884c\u5ba2\u6237\u7aef\u7684\u4eba\uff0c\u6700\u65b0\u7248\u672c\u7684curl\u4e5f\u63d0\u4f9b\u4e86\u5bf9HTTP\/3\u7684\u652f\u6301\u3002\u672c\u6587\u866b\u866b\u5c06\u4ecb\u7ecdHTTP\/3\u7684\u53d1\u5c55\u5386\u7a0b\uff0c\u4ee5\u53ca\u7528\u6237\u5982\u4f55\u542f\u7528HTTP 3\uff0c\u5982\u4f55\u901a\u8fc7\u6d4f\u89c8\u5668Chrome\u53ca\u547d\u4ee4\u884c\u5ba2\u6237\u7aefcurl\u4f7f\u7528HTTP 3\u3002
\n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u9996\u5148\uff0c\u6211\u4eec\u5148\u6765\u4ecb\u7ecd\u4e0bHTTP\u591a\u5e74\u6765\u7684\u53d1\u5c55\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3HTTP\/3\u3002<\/p>\n

HTTP\/1.0<\/strong><\/div>\n

HTTP\u534f\u8bae\u6e90\u4e8e1996\u5e74\uff0c\u5728\u8fd9\u4e00\u5e74\u53d1\u5e03\u4e86HTTP\/1.0\u89c4\u8303(0.x\u7248\u672c\u5ffd\u7565)\uff0c\u8be5\u89c4\u8303\u5b9a\u4e49\u4e86\u6211\u4eec\u4eca\u5929\u5e38\u89c1\u7684\u57fa\u672cHTTP\u6587\u672c\u89c4\u683c\u5b9a\u4e49\u3002\u5728HTTP\/1.0\u4e2d\u5b9a\u4e49\u4e86\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u6bcf\u4e2a\u8bf7\u6c42\/\u54cd\u5e94\u4ea4\u6362\u90fd\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684TCP\u8fde\u63a5\uff0c\u6240\u4ee5\u5728\u8fdb\u884c\u6bcf\u4e2a\u8bf7\u6c42\u5747\u9700\u5927\u5bb6\u719f\u77e5\u7684\"\u4e09\u6b21\u63e1\u624b\uff0c\u56db\u6b21\u6325\u624b\"\u7684\u5386\u7a0b\uff0c\u56e0\u6b64\u8bf7\u6c42\u96be\u514d\u4f1a\u4ea7\u751f\u5ef6\u8fdf\u3002\u6bd4\u5982\u4e00\u4e2a\u5178\u578b\u7684HTTP\/TLS\u8fc7\u7a0b\uff0c\u56fe\u89e3\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/p>\n

\u800c\u4e14\uff0c\u4e3a\u4e86\u907f\u514d\u5c06\u65e0\u6cd5\u5904\u7406\u7684\u6570\u636e\u5305\u6cdb\u6d2a\u5230\u7f51\u7edc\u4e2d\uff0cTCP\u534f\u8bae\u5bf9\u5efa\u7acb\u7684\u8fde\u63a5\u4f7f\u7528\u4f7f\u7528\u4e86\u4e00\u79cd\u79f0\u4e3a\"\u6162\u542f\u52a8\"\u7684\u9884\u70ed\u6682\u7f13\u671f\u7528\u6765\u7ed9TCP\u5835\u585e\u63a7\u5236\u7b97\u6cd5\u786e\u5b9a\u53ef\u4ee5\u4f20\u8f93\u7684\u6570\u636e\u91cf\uff0c\u800c\u4e0d\u662f\u5728\u5efa\u7acb\u8fde\u63a5\u540e\u5c3d\u5feb\u53d1\u9001\u6240\u6709\u672a\u5b8c\u6210\u7684\u6570\u636e\u3002\u7531\u4e8e\u6bcf\u4e00\u4e2a\u65b0\u8fde\u63a5\u90fd\u5fc5\u987b\u7ecf\u8fc7\u8fd9\u4e2a\u7f13\u6162\u7684\u542f\u52a8\u8fc7\u7a0b\uff0c\u8fd9\u4e5f\u6210\u4e86\u7f51\u7edc\u6027\u80fd\u7684\u4e00\u4e2a\u74f6\u9888\u3002<\/p>\n

HTTP\/1.1 keep-alive<\/strong><\/div>\n

\u968f\u4e4b\u800c\u6765\u7684\u7684HTTP\/1.1\u7248\u672c\u4e2d\u5f15\u5165\"keep-alive(\u4fdd\u6d3b)\"\u8fde\u63a5\u7684\u65b9\u6cd5\u6765\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002\u901a\u8fc7\u4fdd\u6d3b\u6280\u672f\uff0c\u53ef\u4ee5\u8ba9\u5ba2\u6237\u7aef\u91cd\u7528TCP\u8fde\u63a5\uff0c\u800c\u4e0d\u9700\u8981\u6bcf\u6b21\u90fd\u91cd\u65b0\u5efa\u7acbTCP\u8fde\u63a5\uff0c\u4ece\u800c\u89e3\u51b3\u521d\u59cb\u8fde\u63a5\u5efa\u7acb\u548c\u7f13\u6162\u8fde\u63a5\u7684\u95ee\u9898\u3002\u4f46\u8fd9\u5e76\u4e0d\u80fd\u4ece\u5b9e\u8d28\u4e0a\u89e3\u51b3\u95ee\u9898\uff0c\u5c3d\u7ba1\u591a\u4e2a\u8bf7\u6c42\u53ef\u4ee5\u5171\u4eab\u540c\u4e00\u4e2a\u8fde\u63a5\uff0c\u4f46\u662f\u4ecd\u7136\u5fc5\u987b\u4e00\u4e2a\u63a5\u4e00\u4e2a\u5730\u5e8f\u5217\u5316\u5b83\u4eec\uff0c\u56e0\u6b64\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u53ea\u80fd\u5728\u4efb\u4f55\u7ed9\u5b9a\u65f6\u95f4\u4e3a\u6bcf\u4e2a\u8fde\u63a5\u6267\u884c\u4e00\u6b21\u8bf7\u6c42\/\u54cd\u5e94\u4ea4\u6362\u3002<\/p>\n

\u968f\u7740\u7f51\u7edc\u548cWeb\u6280\u672f\u7684\u53d1\u5c55\uff0c\u6bcf\u4e2a\u7f51\u7ad9\u6240\u9700\u7684\u8d44\u6e90(CSS\uff0cJS\u811a\u672c\uff0c\u56fe\u7247\uff0c\u89c6\u9891\u7b49)\u7684\u589e\u52a0\uff0c\u6d4f\u89c8\u5668\u5728\u83b7\u53d6\u548c\u6e32\u67d3\u5448\u73b0\u7f51\u9875\u65f6\u5bf9\u5e76\u53d1\u6027\u7684\u9700\u8981\u8d8a\u6765\u8d8a\u8feb\u5207\u3002\u4f46\u662f\uff0c\u7531\u4e8eHTTP\/1.1\u53ea\u5141\u8bb8\u5ba2\u6237\u7aef\u6bcf\u6b21\u53ea\u80fd\u8fdb\u884c\u4e00\u4e2aHTTP\u8bf7\u6c42\/\u54cd\u5e94\u4ea4\u6362\uff0c\u56e0\u6b64\u5728\u7f51\u7edc\u5c42\u4e0a\u83b7\u5f97\u5e76\u53d1\u6027\u7684\u552f\u4e00\u65b9\u6cd5\u662f\u5e76\u884c\u4f7f\u7528\u591a\u4e2aTCP\u8fde\u63a5\uff0c\u8fd9\u6837\u4e00\u6765\u5c31\u65e0\u6cd5\u4eab\u53d7\u4fdd\u6d3b\u6280\u672f\u5e26\u6765\u7684\u597d\u5904\u3002<\/p>\n

HTTP\/2 SPDY<\/strong><\/div>\n

\u53c8\u8fc7\u4e86\u5341\u591a\u5e74\u540e\uff0c\u51fa\u73b0\u4e86SPDY\uff0c\u7136\u540e\u662fHTTP\/2\u89c4\u8303\u3002\u5b83\u9996\u5148\u5f15\u5165\u4e86HTTP\u6d41\u7684\u6982\u5ff5\u3002\u901a\u62bd\u8c61HTTP\u5b9e\u73b0\u5c06\u4e0d\u540c\u7684HTTP\u4ea4\u6362\u5e76\u53d1\u5730\u590d\u7528\u5230\u540c\u4e00\u4e2aTCP\u8fde\u63a5\u4e0a\uff0c\u6d4f\u89c8\u5668\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u91cd\u7528TCP\u8fde\u63a5\u3002
\n\"\"<\/p>\n

HTTP\/2\u89e3\u51b3\u4e86\u5355\u4e2aTCP\u8fde\u63a5\u7684\u4f7f\u7528\u6548\u7387\u4f4e\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u540c\u4e00\u8fde\u63a5\u540c\u65f6\u4f20\u8f93\u591a\u4e2a\u8bf7\u6c42\/\u54cd\u5e94\u3002\u4f46\u662f\u5982\u679c\u4f20\u8f93\u4e2d\u53d1\u751f\u6570\u636e\u4e22\u5305\uff0c\u5373\u4f7f\u4e22\u5931\u7684\u6570\u636e\u4ec5\u6d89\u53ca\u5355\u4e2a\u8bf7\u6c42\uff0c\u6240\u6709\u8bf7\u6c42\u548c\u54cd\u5e94\u4e5f\u540c\u6837\u4f1a\u53d7\u5230\u6570\u636e\u5305\u4e22\u5931\u7684\u5f71\u54cd\u800c\u9700\u8981\u91cd\u4f20\u3002\u56e0\u4e3a\u5c3d\u7ba1HTTP\/2\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u6d41\u4e0a\u9694\u79bb\u4e0d\u540c\u7684HTTP\u4ea4\u6362\uff0c\u4f46\u662f\u5e95\u5c42\u7684TCP\u5e76\u65e0\u6cd5\u5bf9\u4ed6\u4eec\u8fdb\u884c\u533a\u522b\uff0cTCP\u80fd\u770b\u5230\u7684\u53ea\u662f\u6ca1\u6709\u4efb\u4f55\u6807\u5fd7\u7684\u5b57\u8282\u6d41\u3002<\/p>\n

TCP\u7684\u4f5c\u7528\u662f\u4ee5\u6b63\u786e\u7684\u987a\u5e8f\u4ece\u4e00\u4e2a\u7aef\u70b9\u5230\u53e6\u4e00\u7aef\u70b9\u4f20\u9012\u6574\u4e2a\u5b57\u8282\u6d41\u3002\u5f53\u627f\u8f7d\u67d0\u4e9b\u5b57\u8282\u7684TCP\u6570\u636e\u5305\u5728\u7f51\u7edc\u8def\u5f84\u4e0a\u4e22\u5931\u65f6\uff0c\u5b83\u5c06\u5728\u6d41\u4e2d\u9020\u6210\u95f4\u9699\uff0c\u5e76\u4e14TCP\u9700\u8981\u5728\u68c0\u6d4b\u5230\u4e22\u5931\u65f6\u901a\u8fc7\u91cd\u65b0\u53d1\u9001\u53d7\u5f71\u54cd\u7684\u6570\u636e\u5305\u6765\u586b\u5145\u5b83\u3002\u8fd9\u6837\u5373\u4f7f\u4e22\u5931\u6b64\u540e\u6ca1\u6709\u4e22\u5931\u5e76\u4e14\u5c5e\u4e8e\u5b8c\u5168\u72ec\u7acb\u7684HTTP\u8bf7\u6c42\uff0c\u4e5f\u4e0d\u80fd\u5c06\u6570\u636e\u5305\u540e\u7684\u5df2\u6210\u529f\u4f20\u8f93\u7684\u6570\u636e\u5305\u4f20\u9012\u7ed9\u5e94\u7528\u5c42\u3002\u56e0\u6b64\uff0c\u6700\u7ec8\u4f1a\u5bfc\u81f4\u4ed6\u4eec\u4e5f\u4f1a\u4ea7\u751f\u4e0d\u5fc5\u8981\u7684\u5ef6\u8fdf\u3002\u8fd9\u4e2a\u95ee\u9898\u88ab\u79f0\u4e3aTCP head-of-line blocking (TCP\u961f\u5934\u963b\u585e)\u3002<\/p>\n

\"\"<\/p>\n

\u4e3a\u4e86\u89e3\u51b3\u961f\u5934\u963b\u585e\u95ee\u9898\uff0cHTTP\/2\u4e2d\u4e5f\u5f15\u5165\u4e86\u591a\u8def\u590d\u7528(Multiplexing)\u6280\u672f\uff0c\u5c06TCP\u6d41\u53ef\u4ee5\u4f20\u8f93\u7684\u6570\u636e\u5206\u4e3a\u82e5\u5e72\u6d88\u606f\uff0c\u6bcf\u4e2a\u6d88\u606f\u518d\u5212\u5206\u4e3a\u6700\u5c0f\u7684\u4e8c\u8fdb\u5236\u5e27\u7ec4\u6210\uff0c\u8fd9\u6837\u5373\u4f7f\u4e00\u4e2a\u8bf7\u6c42\u88ab\u963b\u585e\u4e86\uff0c\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u8bf7\u6c42\uff0c\u5982\u4e0a\u56fe\u4e2d\u7b2c\u56db\u79cd\u60c5\u51b5\u6240\u793a\u3002<\/p>\n

HTTP\/3 QUIC<\/strong><\/div>\n

\u5f53\u7136\u8fd9\u4e9b\u6539\u826fTCP\u7684\u65b9\u6848\u90fd\u53ea\u80fd\u90e8\u5206\u89e3\u51b3\u95ee\u9898\uff0c\u4e3a\u4e86\u5f7b\u5e95\u4ece\u6839\u89e3\u51b3\u95ee\u9898\u3002\u90a3\u5c31\u9700\u8981\u5f7b\u5e95\u66f4\u6362\u5e95\u5c42\u7684TCP\u534f\u8bae\uff0c\u8fd9\u5c31\u662f\u8c37\u6b4c\u591a\u5e74\u63a2\u7d22\u7684\u57fa\u4e8eUDP\u7684QUIC\u534f\u8bae\uff0c\u8fd9\u4e5f\u662fHTTP\/3\u7684\u57fa\u7840\u3002QUIC\u534f\u8bae\u4e2d\u5728\u4f20\u8f93\u5c42\u5c06\u6570\u636e\u6d41\u4f5c\u4e3a\u57fa\u672c\uff0cQUIC\u6d41\u5171\u4eab\u76f8\u540c\u7684QUIC\u8fde\u63a5\uff0c\u9700\u8981\u989d\u5916\u7684\u63e1\u624b\u548c\u6162\u542f\u52a8\u6765\u521b\u5efa\u65b0\u7684QUIC\u6d41\uff0c\u901a\u8fc7\u5e95\u5c42\u4f7f\u7528UDP\u534f\u8bae\u4ee5\u53ca\u5c06QUIC\u6570\u636e\u5305\u5c01\u88c5\u5728UDP\u6570\u636e\u62a5\u7684\u9876\u90e8\uff0c\u5b9e\u73b0QUIC\u6d41\u7684\u72ec\u7acb\u4ea4\u4ed8\u3002\u56e0\u6b64\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u5f71\u54cd\u4e00\u4e2a\u6d41\u7684\u4e22\u5305\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u6d41\u3002<\/p>\n

\u4e0eTCP\u76f8\u6bd4\uff0c\u4f7f\u7528UDP\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7fQUIC\u5b9e\u73b0\u5b8c\u5168\u5b58\u5728\u4e8e\u7528\u6237\u7a7a\u95f4\u4e2d\u3002\u534f\u8bae\u5b9e\u73b0\u7684\u66f4\u65b0\u4e0d\u518d\u4f9d\u8d56\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u66f4\u65b0\u3002\u501f\u52a9QUIC\uff0c\u53ef\u4ee5\u5c06HTTP\u7ea7\u522b\u7684\u6d41\u7b80\u5355\u5730\u6620\u5c04\u4e3aQUIC\u6d41\u7684\u5934\uff0c\u4ece\u800c\u7ee7\u627fHTTP\/2\u7684\u6240\u6709\u597d\u5904\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u961f\u5934\u963b\u585e\u95ee\u9898\u3002<\/p>\n

\"\"<\/p>\n

QUIC\u8fd8\u7ed3\u5408\u4e86\u5178\u578b\u76843\u6b21TCP\u63e1\u624b\u548cTLS 1.3\u7684\u63e1\u624b\u3002\u8fd9\u6837\u9ed8\u8ba4\u60c5\u51b5\u5c31\u53ef\u4ee5\u63d0\u4f9b\u52a0\u5bc6\u548c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u5e76\u4e14\u52a0\u901f\u8fde\u63a5\u7684\u5efa\u7acb\u3002\u5c31\u7b97HTTP\u4f1a\u8bdd\u4e2d\u7684\u521d\u59cb\u8bf7\u6c42\u9700\u8981\u65b0\u7684QUIC\u8fde\u63a5\uff0c\u5728\u6570\u636e\u5f00\u59cb\u6d41\u52a8\u4e4b\u524d\u6240\u5f15\u8d77\u7684\u7b49\u5f85\u65f6\u95f4\u4e5f\u8f83\u4f4e\u3002<\/p>\n

\"\"<\/p>\n

HTTP\/3\u7684\u4f7f\u7528<\/strong><\/div>\n

HTTP\/3\u548cQUIC\u7ed9\u6211\u4eec\u5e26\u6765\u5f00\u5929\u8f9f\u5730\u7684\u53d8\u5316\uff0c\u53ef\u4ee5\u4ece\u6839\u672c\u4e0a\u89e3\u51b3HTTP\u6807\u51c6\u8bb8\u4e45\u4ee5\u6765\u7684\u8bb8\u591a\u95ee\u9898\u548c\u7f3a\u9677\u3002\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u7acb\u523b\u4f7f\u7528\u5b83\u5e26\u6765\u7684\u798f\u5229\u5462?<\/p>\n

quiche\u6846\u67b6<\/strong><\/div>\n

\u4e3a\u4e86\u652f\u6301\u63a8\u5e7fHTTP\/3 Cloudflare\u4f7f\u7528Rust\u5f00\u53d1\u5e76\u5f00\u6e90\u4e00\u4e2aHTTP\/3\u548cQUI\u7684\u5e94\u7528\u6846\u67b6\uff0c\u800c\u4e14\u8fd8\u7ed9\u8be5\u5e94\u7528\u4f7f\u7528\u4e00\u4e2a\u975e\u5e38\u53ef\u9910\u7684\u540d\u5b57quiche(\u4e73\u86cb\u997c)\u548clogo\uff0c\u4f30\u8ba1\u4ee5\u501f\u6b64\u5438\u5f15\u4eba\u4eec\u5c3d\u5feb\u54c1\u5c1dHTTP\/3\u5236\u6210\u7684\u7f8e\u98df\u3002<\/p>\n

quiche\u7684\u6e90\u7801\u6258\u7ba1\u5728github\u4e0a(github:\/cloudflare\/quiche)\uff0c\u5728clone\u6e90\u7801\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7cargo\u7f16\u8bd1(\u6ce8\u610f\u9700\u8981rust 1.38\u53ca\u66f4\u65b0\u7684\u7248\u672c\uff0cBoringSSL\u53ca\u5176windows\u7248\u672cNASM)\uff1a<\/p>\n

cargo build -examples\r\n<\/pre>\n

quiche\u4e5f\u63d0\u4f9b\u4e86\u4ee5docker\u4e3a\u57fa\u7840\u7684\u5b9e\u9a8c\u73af\u5883\u5305\u62echttp3-client, http3-server, \u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\uff0c\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n

docker\u7f16\u8bd1\uff1a<\/p>\n

docker build -t cloudflare-quiche \r\n<\/pre>\n

.<\/p>\n

\u8fdb\u884cHTTP\/3\u8bf7\u6c42<\/p>\n

docker run -it cloudflare-quiche http3-client Url\r\n<\/pre>\n
\u7f51\u7ad9\u542f\u7528<\/strong><\/div>\n

\u76ee\u524dCloudflare\u7684\u9009\u62e9\u6027\u5f00\u90e8\u5206\u653e\u5ba2\u6237\u5982\u5df2\u7ecf\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u624b\u52a8\u8bbe\u7f6e\u542f\u7528HTTP\/3\u529f\u80fd\uff0c\u65b9\u6cd5\u662f\u5728Cloudflare\u4eea\u8868\u677f\uff0c\u624b\u52a8\u5728\"\u7f51\u7edc\"\u9009\u9879\u5361\u5f00\u542f\u5f00\u5173\uff1a
\n\"\"<\/p>\n

\u5ba2\u6237\u7aef\u4f7f\u7528<\/strong><\/div>\n

\u76ee\u524d\u77e5\u540d\u6d4f\u89c8\u5668\u8c37\u6b4cChrome\u548cFirefox\u90fd\u5df2\u7ecf\u5b9e\u9a8c\u6027\u63d0\u4f9b\u5bf9HTTP\/3\u7684\u652f\u6301\u3002Chrome\u5728Canary\uff0cFirefox\u5c06\u5728Nightly\u6b63\u5f0f\u6b63\u5f0f\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n

Chrome\u6d4f\u89c8\u5668\uff1a\u9996\u5148\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7684Canary\u7248\u672c\u3002\u7136\u540e\uff0c\u901a\u8fc7\u8bbe\u7f6e\u4ee5\u4e0b\u547d\u4ee4\u884c\u53c2\u6570\u542f\u52a8Chrome Canary\uff1a<\/p>\n

\"--enable-quic\"\u548c\" --quic-version = h3-23\"\r\n<\/pre>\n

\u7136\u540e\u5c31\u53ef\u4ee5\u652f\u6301HTTP\/3\uff0c\u53ef\u4ee5\u901a\u8fc7Chrome\u5f00\u53d1\u4eba\u5458\u5de5\u5177\u4e2d\u7684\"\u7f51\u7edc\"\u6807\u7b7e\u9875\u6765\u68c0\u67e5\u4f7f\u7528\u7684\u534f\u8bae\u7248\u672c\uff1a
\n\"\"
\n\u6ce8\u610f\u5230\u534f\u8bae\u7c7b\u578b\u4e3a\"http2+quic\/99\"\uff0c\u8fd9\u5c31\u662f\u8868\u793aHttp3\u3002<\/p>\n

\u4f7f\u7528curl<\/strong><\/div>\n

curl\u6700\u65b0\u72487.66\uff0c\u4e5f\u6dfb\u52a0\u4e86\u5bf9HTTP\/3\u7684\u5b9e\u9a8c\u6027\u652f\u6301\u3002\u6211\u4eec\u53ef\u4ee5\u4e0b\u8f7d\u7f16\u8bd1\u8bd5\u7528\uff0c\u5728\u6b64\u524d\u866b\u866b\u6587\u7ae0\u4e2d\u5bf9\u6b64\u4ecb\u7ecd\u8fc7\u3002<\/p>\n

\u8981\u4f7f\u7528HTTP\/3\u9700\u8981\u4f7f\u7528\u65b0\u6dfb\u52a0\u7684 \"--http3\"\u6807\u5fd7\u6765\u8fdb\u884c\u8bf7\u6c42\uff1a<\/p>\n

curl -I URL --http3\r\n<\/pre>\n

\"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9996\u5148\uff0c\u6211\u4eec\u5148\u6765\u4ecb\u7ecd\u4e0bHTTP\u591a\u5e74\u6765\u7684\u53d1\u5c55\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7406\u89e3HTTP\/3\u3002 HTTP\u534f\u8bae\u6e90\u4e8e1996\u5e74\uff0c\u5728\u8fd9\u4e00\u5e74\u53d1 […]<\/p>\n","protected":false},"author":1329,"featured_media":161188,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-161178","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=161178"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161178\/revisions"}],"predecessor-version":[{"id":161189,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/161178\/revisions\/161189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/161188"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=161178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=161178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=161178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}