首页 > 解决方案 > 如何使用 nginx 服务器在 .net core api 上启用 http/2?

问题描述

是否需要在 .netcore 和 nginx 两个地方都启用 http/2 或者 nginx 可以处理它?

options.Listen(IPAddress.Any, 5001, listenOptions =>    {
          listenOptions.Protocols = 
          HttpProtocols.Http1AndHttp2;

});

标签: .net-corehttp2

解决方案


推荐阅读