简体   繁体   English

.NET上的HTTP / 2(HTTP2或SPDY)

[英]HTTP/2 (HTTP2 or SPDY) on .NET

There's been a lot of news lately about the HTTP/2 standard, very similar to Google's SPDY . 最近有很多关于HTTP / 2标准的新闻 ,与Google的SPDY非常相似。

It seems like most modern browsers support much of the functionality the finalized HTTP/2 draft lays out (see here , for example). 似乎大多数现代浏览器都支持最终定稿的HTTP / 2草案提供的许多功能(例如,请参见此处 )。

But, from the viewpoint of server side coding using ASP.NET and IIS, it's difficult to find much information from Microsoft about how this standard will be used in the .NET framework, especially with ASP.NET (see here ). 但是,从使用ASP.NET和IIS进行服务器端编码的角度来看,很难从Microsoft那里获得很多有关如何在.NET框架中使用该标准的信息,尤其是在ASP.NET中(请参见此处 )。

What options are available for incorporating the technologies available through HTTP/2, in a solution currently using .NET framework 4 or above? 在当前使用.NET Framework 4或更高版本的解决方案中,可以采用哪些选项来整合通过HTTP / 2获得的技术?

Also, has anyone found any news from Microsoft about if the System.Net namespaces and classes will be updated? 此外,是否有人从Microsoft获得有关是否将更新System.Net 命名空间和类的任何消息?

Sorry for the basic question formats - I'm new to web development, and just want to make sure I stay on track of new and emerging technologies. 很抱歉使用基本的问题格式-我是Web开发的新手,并且只想确保我能跟踪新兴技术。

2016-07-21: 2016-07-21:

HTTP/2 requires Windows 10 or Windows Server 2016 on the server side. HTTP / 2在服务器端需要Windows 10或Windows Server 2016。 Those operating systems ship with IIS 10. So far IIS 10 has not been made available for installation on older operating systems. 那些操作系统随IIS 10一起提供。到目前为止,IIS 10尚未可用于在较旧的操作系统上进行安装。 Given past behavior it is unlikely it ever will become available on downlevel operating systems. 考虑到过去的行为,它不太可能在较低级别的操作系统上可用。

With SSL enabled (which is a requirement of the HTTP/2 protocol), IISExpress on Windows 10 will begin interacting with the browser using the updated protocol. 启用S​​SL(这是HTTP / 2协议的要求)后,Windows 10上的IISExpress将开始使用更新的协议与浏览器进行交互。

( https://weblogs.asp.net/scottgu/released-today-visual-studio-2015-asp-net-4-6-asp-net-5-ef-7-previews ) https://weblogs.asp.net/scottgu/released-today-visual-studio-2015-asp-net-4-6-asp-net-5-ef-7-previews

Given that HTTP/2 does not change any of the HTTP semantics I do not expect applications to do anything special to make use of that. 鉴于HTTP / 2不会更改任何HTTP语义,因此我不希望应用程序做任何特殊的事情来利用它。 It should work with any .NET version and any framework. 它应与任何.NET版本和任何框架一起使用。 I have not tried it, though. 我还没有尝试过。


February 2015: 2015年2月:

For now you need a proxy server in front of IIS. 现在,您需要在IIS前面有一个代理服务器。 Or a CDN which does HTTP 2. I expect all major ones to very quickly support it given that all browsers already support it. 或执行HTTP 2的CDN。考虑到所有浏览器均已支持它,我希望所有主要的浏览器都可以非常迅速地支持它。

The Win10 version of IIS will support HTTP 2 according to currently available Microsoft information. 根据当前可用的Microsoft信息,IIS的Win10版本将支持HTTP 2

I'm pretty sure the network BCL classes will be updated eventually given how much steam is behind HTTP 2. All clients and servers seem to be willing to support it very quickly. 我非常确定,由于HTTP 2背后的负担,网络BCL类最终将被更新。所有客户端和服务器似乎都愿意非常迅速地支持它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM