gpt4 book ai didi

azure - 如何在Azure中启用http2?

转载 作者:行者123 更新时间:2023-12-04 16:41:59 25 4
gpt4 key购买 nike

虽然我在 Azure 中启用了 Http/2,但它不起作用。当我在本地运行我的 api 时,http/2 正在工作。

编辑1

我有一个 net core 3 Web api,我想发布到 azure Web 应用程序。我按照微软页面的说明进行操作,但是当我检查 HttpContext.Request.Protocol 上的协议(protocol)时,我得到了 HTTP/1.1。

是否还有其他内容需要添加到我错过的 Azure Web 应用程序的代码或其他配置中?

谢谢

最佳答案

2021 年,它位于您的应用服务侧边栏 -> 设置 -> 配置中。 enter image description here

它位于页面中间的“选项卡”常规设置下。 enter image description here

关于azure - 如何在Azure中启用http2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58875224/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com