HTTP/2.0 in browser: How does Browser cancel Server Push?

北战南征 提交于 2019-12-12 05:08:50

问题


I've read documentation of HTTP/2.0 and I know that it is possible to fully terminates the referenced stream by using the RST_STREAM frame. Here's (https://http2.github.io/http2-spec/)!

How can I implement this feature in a web browser like Google Chrome or Firefox?


回答1:


As a browser user or web app developer (HTTP/Javascript) you can't. There is no public API for this, or to interact with server push in general. The possibility to do this is probably implemented in the network stack of the browser (somewhere deep within the Chrome/Firefox code).



来源:https://stackoverflow.com/questions/40235034/http-2-0-in-browser-how-does-browser-cancel-server-push

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!