.net-core - 如何使用 nginx 服务器在 .net core api 上启用 http/2?
问题描述
是否需要在 .netcore 和 nginx 两个地方都启用 http/2 或者 nginx 可以处理它?
options.Listen(IPAddress.Any, 5001, listenOptions => {
listenOptions.Protocols =
HttpProtocols.Http1AndHttp2;
});
解决方案
推荐阅读
- javascript - 将过滤结果输出到文本框中
- python - 如何可视化和理解这段代码
- docker - 当另一个站点重定向到我的 vue 应用程序时,Nginx 405 不允许
- python - Tensorflow - TypeError:'int'对象不可迭代
- html - 如何阻止我的导航溢出到我的 div
- xamarin - “securestorage”不包含 setasync 的定义
- json - serde_json::Value 以外的类型的 Serde Stream Deserializer
- r - 使用“日期”作为固定效应分析时间相关数据;您是先转换为因子还是在 R 中保留为“日期”类?
- jestjs - Redux runSaga(单元测试)错误在局部变量上抛出未定义。如何使用 Jest 或 Sinon 模拟局部变量?
- javascript - 如何将标签添加到d3节点