(self, reply)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected