MCPcopy Create free account
hub / github.com/PyQt5/PyQt / onFinished

Method onFinished

QWebEngineView/GetRequestInfo.py:62–69  ·  view source on GitHub ↗
(self, reply)

Source from the content-addressed store, hash-verified

60 self._manager.post(req)
61
62 def onFinished(self, reply):
63 req = reply.request() # 获取请求
64 o_req = req.attribute(self.AttrType, None)
65 if o_req:
66 # Notice: 这里可以对数据做修改再返回
67 # TODO: 可能还存在 QNetworkAccessManager 与浏览器之间的 cookie 同步问题
68 o_req.reply(req.header(QNetworkRequest.ContentTypeHeader) or b'text/html', reply)
69 o_req.destroyed.connect(reply.deleteLater)
70
71
72# 把所有请求重定向到myurl

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected