Chromium 实现 http(s) 协议拦截解析

Dosk 技术站 at 
Chromium 实现 http(s) 协议拦截解析的配图
Chromium 的 http 实现这里简单提一下,其实封装的很完备,可以参考: Here 简单实现 我就不贴代码了,因为一些保密的原因这里我使用 Electron 的源码进行验证,主要是手头只有 Electron 代码,不想在拉别的东西 修改 Electron net 层 暴露 registerSDKProtocol 接口作为功能入口 使用 class RustSDKProtocolHandler : public net::URLRequestJobFactory::ProtocolHandler 实现请求 handler 使用 net::URLRequestJob* reque……