浏览器中的HTTP / 2.0:浏览器如何取消服务器推送? [英] HTTP/2.0 in browser: How does Browser cancel Server Push?

查看:185
本文介绍了浏览器中的HTTP / 2.0:浏览器如何取消服务器推送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过HTTP / 2.0的文档,并且我知道可以通过使用RST_STREAM框架完全终止引用的流。这是( https://http2.github.io/http2-spec/ )!

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/)!

如何在Google Chrome或Firefox等网络浏览器中实现此功能?

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

推荐答案

作为浏览器用户或Web应用程序开发人员(HTTP / Javascript),您不能。没有公开的API,或者与一般的服务器推送进行交互。这种做法的可能性可能在浏览器的网络堆栈中实现(Chrome / Firefox代码中的某个地方)。

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).

这篇关于浏览器中的HTTP / 2.0:浏览器如何取消服务器推送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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