如何在应用程序内部处理http2 [英] How to handle http2 inside the application

查看:55
本文介绍了如何在应用程序内部处理http2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello


我有一个处理http1.1和http2的docker容器。在App Service外部运行时,让我的TLS堆栈协商它是否应该使用H2或http1.1运行。但是当你为我处理SSL和http2时,我想知道我怎么知道何时在我的代码中使用它。
或者我可以假设H2并且您将在代理层中升级用户请求吗?


我在搜索时找不到任何关于此的信息。

解决方案

您好Ulrik,


请参阅此
blog pos
。根据我的理解,您需要在应用设置中配置您的http版本。



Hello

I have a docker container that handles http1.1 and http2. When running outside of App Service I let my TLS stack negotiate if it should run with H2 or http1.1. But as you handle both SSL and http2 for me I wonder how I know when to use either in my code. Or can I just assume H2 and you'll upgrade the users request in the proxy layer?

I couldn't find any information about this when searching for it.

解决方案

Hi Ulrik,

Please refer to this blog post by the Azure App Service team. From my understanding, you need to configure your http version in your app settings.


这篇关于如何在应用程序内部处理http2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆