SYMBOL INDEX (452 symbols across 107 files) FILE: packages/cli/src/index.js function startup (line 7) | async function startup () { function onClose (line 29) | async function onClose () { FILE: packages/core/src/config-api.js function get (line 13) | function get () { method startAutoDownloadRemoteConfig (line 19) | async startAutoDownloadRemoteConfig () { method downloadRemoteConfig (line 34) | async downloadRemoteConfig () { method doDownloadRemoteConfig (line 46) | doDownloadRemoteConfig (remoteConfigUrl, suffix = '') { method deleteRemoteConfigFile (line 116) | deleteRemoteConfigFile (suffix = '') { method readRemoteConfigStr (line 123) | readRemoteConfigStr (suffix = '') { method save (line 143) | save (newConfig) { method reload (line 183) | reload () { method update (line 187) | update (partConfig) { method set (line 192) | set (newConfig) { method load (line 199) | load (newConfig) { method cloneDefault (line 204) | cloneDefault () { method addDefault (line 207) | addDefault (key, defValue) { method removeUserConfig (line 211) | async removeUserConfig () { method resetDefault (line 253) | resetDefault (key) { method getVariables (line 263) | async getVariables (type) { method setVariables (line 278) | async setVariables (type) { FILE: packages/core/src/config/index.js function getRootCaCertPath (line 4) | function getRootCaCertPath () { function getRootCaKeyPath (line 8) | function getRootCaKeyPath () { FILE: packages/core/src/config/local-config-loader.js function getUserBasePath (line 8) | function getUserBasePath (autoCreate = true) { function loadConfigFromFile (line 20) | function loadConfigFromFile (configFilePath) { function getUserConfigPath (line 51) | function getUserConfigPath () { function getUserConfig (line 64) | function getUserConfig () { function getRemoteConfigPath (line 69) | function getRemoteConfigPath (suffix = '') { function getRemoteConfig (line 74) | function getRemoteConfig (suffix = '') { function getAutomaticCompatibleConfigPath (line 79) | function getAutomaticCompatibleConfigPath () { function getConfigFromFiles (line 90) | function getConfigFromFiles (userConfig, defaultConfig) { FILE: packages/core/src/event.js function register (line 3) | function register (channel, handle, order = 10) { function fire (line 14) | function fire (channel, event) { function unregister (line 24) | function unregister (id) { FILE: packages/core/src/expose.js function setupPlugin (line 17) | function setupPlugin (key, plugin, context, config) { function newServerStart (line 40) | function newServerStart ({ mitmproxyPath }) { function startup (line 44) | async function startup ({ mitmproxyPath }) { function shutdown (line 83) | async function shutdown () { method get (line 128) | get () { FILE: packages/core/src/merge.js function doDiff (line 10) | function doDiff (oldObj, newObj) { function deleteNullItems (line 66) | function deleteNullItems (target) { method doMerge (line 78) | doMerge (oldObj, newObj) { FILE: packages/core/src/modules/plugin/git/index.js method start (line 6) | async start () { method close (line 13) | async close () { method restart (line 17) | async restart () { method isEnabled (line 22) | isEnabled () { method save (line 26) | async save (newConfig) { method setProxy (line 30) | async setProxy (ip, port) { method unsetProxy (line 54) | async unsetProxy () { FILE: packages/core/src/modules/plugin/node/index.js method start (line 7) | async start () { method close (line 20) | async close () { method restart (line 24) | async restart () { method save (line 29) | async save (newConfig) { method getNpmEnv (line 32) | async getNpmEnv () { method setNpmEnv (line 43) | async setNpmEnv (list) { method unsetNpmEnv (line 57) | async unsetNpmEnv (list) { method setYarnEnv (line 67) | async setYarnEnv (list) { method unsetYarnEnv (line 80) | async unsetYarnEnv (list) { method getVariables (line 88) | async getVariables () { method setVariables (line 105) | async setVariables () { method setRegistry (line 115) | async setRegistry ({ registry, type }) { method setProxy (line 124) | async setProxy (ip, port) { method unsetProxy (line 169) | async unsetProxy () { FILE: packages/core/src/modules/plugin/overwall/index.js method start (line 6) | async start () { method close (line 10) | async close () { method restart (line 14) | async restart () { method overrideRunningConfig_bak (line 19) | async overrideRunningConfig_bak (serverConfig) { FILE: packages/core/src/modules/plugin/pip/index.js method start (line 6) | async start () { method close (line 11) | async close () { method restart (line 14) | async restart () { method save (line 19) | async save (newConfig) { method getPipEnv (line 22) | async getPipEnv () { method setPipEnv (line 45) | async setPipEnv (list) { method unsetPipEnv (line 58) | async unsetPipEnv (list) { method setRegistry (line 67) | async setRegistry ({ registry }) { method setTrustedHost (line 72) | async setTrustedHost (host) { method setProxy (line 77) | async setProxy (ip, port) { method unsetProxy (line 81) | async unsetProxy () { FILE: packages/core/src/modules/proxy/index.js method start (line 4) | async start () { method close (line 8) | async close () { method restart (line 12) | async restart () { method setProxy (line 17) | async setProxy () { method unsetProxy (line 27) | async unsetProxy (setEnv) { method setEnableLoopback (line 42) | async setEnableLoopback () { FILE: packages/core/src/modules/server/index.js function fireStatus (line 12) | function fireStatus (status) { function sleep (line 15) | function sleep (time) { method startup (line 23) | async startup () { method shutdown (line 28) | async shutdown () { method start (line 33) | async start ({ mitmproxyPath, plugins }) { method kill (line 123) | async kill () { method close (line 130) | async close () { method close1 (line 133) | async close1 () { method restart (line 158) | async restart ({ mitmproxyPath }) { method getServer (line 162) | getServer () { method getSpeedTestList (line 165) | getSpeedTestList () { method reSpeedTest (line 170) | reSpeedTest () { FILE: packages/core/src/shell/index.js method exec (line 22) | async exec (cmds, args) { FILE: packages/core/src/shell/scripts/enable-loopback.js method windows (line 10) | windows (exec) { method linux (line 35) | async linux (exec, { port }) { method mac (line 38) | async mac (exec, { port }) { FILE: packages/core/src/shell/scripts/extra-path/index.js function getExtraPath (line 4) | function getExtraPath () { function getProxyExePath (line 13) | function getProxyExePath () { function getEnableLoopbackPath (line 18) | function getEnableLoopbackPath () { FILE: packages/core/src/shell/scripts/get-npm-env.js method windows (line 10) | async windows (exec) { method linux (line 18) | async linux (exec, { port }) { method mac (line 21) | async mac (exec, { port }) { FILE: packages/core/src/shell/scripts/get-system-env.js method windows (line 9) | async windows (exec) { method linux (line 23) | async linux (exec, { port }) { method mac (line 26) | async mac (exec, { port }) { FILE: packages/core/src/shell/scripts/kill-by-port.js method windows (line 6) | async windows (exec, { port }) { method linux (line 11) | async linux (exec, { port }) { method mac (line 15) | async mac (exec, { port }) { FILE: packages/core/src/shell/scripts/set-npm-env.js method windows (line 9) | async windows (exec, { list }) { method linux (line 16) | async linux (exec, { port }) { method mac (line 19) | async mac (exec, { port }) { FILE: packages/core/src/shell/scripts/set-system-env.js method windows (line 9) | async windows (exec, { list }) { method linux (line 25) | async linux (exec, { port }) { method mac (line 28) | async mac (exec, { port }) { FILE: packages/core/src/shell/scripts/set-system-proxy/index.js function loadConfig (line 17) | function loadConfig () { function getDomesticDomainAllowListTmpFilePath (line 23) | function getDomesticDomainAllowListTmpFilePath () { function downloadDomesticDomainAllowListAsync (line 27) | async function downloadDomesticDomainAllowListAsync () { function loadLastModifiedTimeFromTxt (line 66) | function loadLastModifiedTimeFromTxt (fileTxt) { function saveDomesticDomainAllowListFile (line 78) | function saveDomesticDomainAllowListFile (fileTxt) { function getDomesticDomainAllowList (line 109) | function getDomesticDomainAllowList () { function getProxyExcludeIpStr (line 148) | function getProxyExcludeIpStr (split) { method windows (line 187) | async windows (exec, params = {}) { method linux (line 288) | async linux (exec, params = {}) { method mac (line 321) | async mac (exec, params = {}) { FILE: packages/core/src/shell/scripts/setup-ca.js method windows (line 6) | async windows (exec, { certPath }) { method linux (line 11) | async linux (exec, { certPath }) { method mac (line 16) | async mac (exec, { certPath }) { FILE: packages/core/src/shell/shell.js class SystemShell (line 9) | class SystemShell { method exec (line 10) | static async exec (cmds, args) { class LinuxSystemShell (line 15) | class LinuxSystemShell extends SystemShell { method exec (line 16) | static async exec (cmds) { class DarwinSystemShell (line 26) | class DarwinSystemShell extends SystemShell { method exec (line 27) | static async exec (cmds) { class WindowsSystemShell (line 39) | class WindowsSystemShell extends SystemShell { method exec (line 40) | static async exec (cmds, args = { }) { function childExec (line 72) | function childExec (composeCmds, options = {}) { function getSystemShell (line 91) | function getSystemShell () { function getSystemPlatform (line 104) | function getSystemPlatform (throwIfUnknown = false) { function execute (line 124) | async function execute (executor, args) { function execFile (line 128) | async function execFile (file, args, options) { FILE: packages/core/src/utils/util.date.js method format (line 3) | format (date, needMill = true) { method now (line 19) | now (needMill = true) { FILE: packages/core/src/utils/util.log-or-console.js function backup (line 8) | function backup (fun, args) { function printBackups (line 28) | function printBackups () { function _doLog (line 44) | function _doLog (fun, args) { method setLogger (line 54) | setLogger (logger) { method debug (line 77) | debug (...args) { method info (line 80) | info (...args) { method warn (line 83) | warn (...args) { method error (line 86) | error (...args) { FILE: packages/core/src/utils/util.logger.js function getDefaultConfigBasePath (line 10) | function getDefaultConfigBasePath () { function log4jsConfigure (line 39) | function log4jsConfigure (categories) { method getLogger (line 69) | getLogger (category) { FILE: packages/core/src/utils/util.version.js function parseVersion (line 1) | function parseVersion (version) { function isNewVersion (line 17) | function isNewVersion (onlineVersion, currentVersion, log = null) { FILE: packages/core/test/versionTest.js function testIsNewVersion (line 4) | function testIsNewVersion (onlineVersion, currentVersion, expected) { FILE: packages/gui/pkg/after-all-artifact-build.js function appendIntro (line 5) | function appendIntro (context, systemType, latest) { FILE: packages/gui/pkg/after-pack.js function writeAppUpdateYmlForLinux (line 6) | function writeAppUpdateYmlForLinux () { FILE: packages/gui/src/background.js function openDevTools (line 50) | function openDevTools () { function closeDevTools (line 60) | function closeDevTools () { function switchDevTools (line 70) | function switchDevTools () { function setTray (line 82) | function setTray () { function checkHideWin (line 151) | function checkHideWin () { function hideWin (line 173) | function hideWin (reason = '', needCheck = false) { function showWin (line 189) | function showWin () { function changeAppConfig (line 201) | function changeAppConfig (config) { function createWindow (line 207) | function createWindow (startHideWindow, autoQuitIfError = true) { function beforeQuit (line 364) | async function beforeQuit () { function quit (line 368) | async function quit (reason) { function hasShortcut (line 379) | function hasShortcut (showHideShortcut) { function registerShowHideShortcut (line 383) | function registerShowHideShortcut (showHideShortcut) { function initApp (line 410) | function initApp () { FILE: packages/gui/src/background/powerMonitor.js class PowerMonitor (line 4) | class PowerMonitor { method constructor (line 5) | constructor () { method setupMainWindow (line 14) | setupMainWindow (window) { method addListener (line 21) | addListener (event, listener) { method removeListener (line 25) | removeListener (event, listener) { method removeAllListeners (line 29) | removeAllListeners (event) { method on (line 42) | on (event, listener) { method off (line 58) | off (event, listener) { method once (line 66) | once (event, listener) { method emit (line 74) | emit (event, ...args) { method eventNames (line 78) | eventNames () { method getMaxListeners (line 82) | getMaxListeners () { method listeners (line 86) | listeners (event) { method rawListeners (line 90) | rawListeners (event) { method listenerCount (line 94) | listenerCount (event, listener) { method onBatteryPower (line 101) | get onBatteryPower () { method getSystemIdleState (line 109) | getSystemIdleState (idleThreshold) { method getSystemIdleTime (line 116) | getSystemIdleTime () { method getCurrentThermalState (line 123) | getCurrentThermalState () { method isOnBatteryPower (line 130) | isOnBatteryPower () { FILE: packages/gui/src/bridge/api/backend.js method getApiList (line 25) | getApiList () { method get (line 35) | get () { method getConfigDir (line 40) | getConfigDir () { method getLogDir (line 43) | getLogDir () { method getSystemPlatform (line 46) | getSystemPlatform (throwIfUnknown = false) { method load (line 54) | load () { method save (line 90) | save (setting = {}) { method startup (line 104) | startup () { method start (line 112) | start () { method restart (line 119) | restart () { function _deepFindFunction (line 125) | function _deepFindFunction (list, parent, parentKey) { function _getSettingsPath (line 136) | function _getSettingsPath () { function invoke (line 152) | function invoke (api, param) { function doStart (line 165) | async function doStart () { method install (line 173) | install ({ win }) { FILE: packages/gui/src/bridge/api/open-enable-loopback.js method open (line 8) | open () { FILE: packages/gui/src/bridge/auto-start/backend.js function setAutoStartForLinux (line 3) | async function setAutoStartForLinux (app, enable = true) { method install (line 28) | install (context) { FILE: packages/gui/src/bridge/auto-start/front.js function install (line 1) | function install (app, api) { FILE: packages/gui/src/bridge/backend.js method install (line 16) | install (context) { FILE: packages/gui/src/bridge/error/front.js function install (line 3) | function install (app, api) { function handleServerStartError (line 16) | function handleServerStartError (message, err, app, api) { FILE: packages/gui/src/bridge/file-selector/backend.js method install (line 2) | install (context) { FILE: packages/gui/src/bridge/file-selector/front.js function install (line 1) | function install (app, api) { FILE: packages/gui/src/bridge/front.js method install (line 19) | install (app, api, router) { FILE: packages/gui/src/bridge/on-close/front.js function install (line 4) | function install (app, api) { FILE: packages/gui/src/bridge/tongji/backend.js function ebtMain (line 5) | function ebtMain (ipcMain) { method install (line 50) | install (context) { FILE: packages/gui/src/bridge/tongji/front.js function ebtRenderer (line 7) | function ebtRenderer (ipcRenderer, siteId, router) { method install (line 56) | install (app, api, router) { FILE: packages/gui/src/bridge/update/backend.js function downloadFile (line 20) | function downloadFile (uri, filePath, onProgress, onSuccess, onError) { function updateHandle (line 46) | function updateHandle (app, api, win, beforeQuit, quit, log) { method install (line 317) | install (context) { FILE: packages/gui/src/bridge/update/front.js function install (line 1) | function install (app, api) { FILE: packages/gui/src/utils/util.apppath.js function getSystemPlatform (line 5) | function getSystemPlatform (throwIfUnknown = false) { method getAppRootPath (line 26) | getAppRootPath (app) { FILE: packages/gui/src/view/api.js function apiInit (line 7) | function apiInit (app) { function useApi (line 64) | function useApi () { FILE: packages/gui/src/view/index.js method initPre (line 7) | async initPre (Vue, api) { method initModules (line 16) | initModules (app, router) { FILE: packages/gui/src/view/mixins/plugin.js method data (line 8) | data () { method created (line 20) | created () { method mounted (line 23) | mounted () { method getKey (line 26) | getKey () { method init (line 32) | async init () { method apply (line 42) | async apply () { method applyBefore (line 55) | async applyBefore () { method applyAfter (line 58) | async applyAfter () { method resetDefault (line 61) | resetDefault () { method saveConfig (line 83) | saveConfig () { method getConfig (line 91) | getConfig (key) { method setConfig (line 98) | setConfig (newConfig) { method printConfig (line 101) | printConfig (prefix = '') { method getStatus (line 104) | getStatus (key) { method reloadConfig (line 111) | async reloadConfig () { method reloadConfigAndRestart (line 115) | async reloadConfigAndRestart () { method isWindows (line 132) | isWindows () { method isMac (line 135) | isMac () { method isLinux (line 138) | isLinux () { method openLog (line 141) | async openLog () { method focusFirst (line 145) | async focusFirst (ref) { method handleHostname (line 158) | handleHostname (hostname) { method isNotHostname (line 166) | isNotHostname (hostname) { FILE: packages/gui/src/view/router/menu.js function createMenus (line 1) | function createMenus (app) { FILE: packages/gui/src/view/status.js function install (line 15) | async function install (api) { FILE: packages/gui/vue.config.js method chainWebpackMainProcess (line 127) | chainWebpackMainProcess (config) { FILE: packages/mitmproxy/src/index.js method start (line 11) | async start (config) { method close (line 50) | async close () { function registerProcessListener (line 80) | function registerProcessListener () { FILE: packages/mitmproxy/src/json.js constant JSON5 (line 2) | let JSON5 = require('json5') method parse (line 8) | parse (str, defaultValue) { method stringify (line 26) | stringify (obj) { method stringify2 (line 31) | stringify2 (obj) { FILE: packages/mitmproxy/src/lib/choice/index.js class ChoiceCache (line 6) | class ChoiceCache { method constructor (line 7) | constructor () { method get (line 16) | get (key) { method getOrCreate (line 20) | getOrCreate (key, backupList) { class DynamicChoice (line 32) | class DynamicChoice { method constructor (line 33) | constructor (key) { method doRank (line 41) | doRank () { method setBackupList (line 63) | setBackupList (newBackupList) { method countStart (line 76) | countStart (value) { method changeNext (line 84) | changeNext (count) { method doCount (line 105) | doCount (ip, isError) { FILE: packages/mitmproxy/src/lib/dns/base.js function mapToList (line 6) | function mapToList (ipMap) { class IpCache (line 19) | class IpCache extends DynamicChoice { method constructor (line 20) | constructor (hostname) { method setBackupList (line 30) | setBackupList (newBackupList) { method constructor (line 37) | constructor (dnsName, dnsType, cacheSize, preSetIpList) { method count (line 49) | count (hostname, ip, isError = true) { method lookup (line 56) | async lookup (hostname, ipChecker) { method _lookupWithPreSetIpList (line 106) | async _lookupWithPreSetIpList (hostname) { method _lookup (line 128) | async _lookup (hostname) { method _doDnsQuery (line 164) | _doDnsQuery (hostname, type = 'A', start) { FILE: packages/mitmproxy/src/lib/dns/https.js function createAgent (line 9) | function createAgent (dnsServer) { method constructor (line 17) | constructor (dnsName, cacheSize, preSetIpList, dnsServer, dnsServerName) { method _dnsQueryPromise (line 23) | _dnsQueryPromise (hostname, type = 'A') { FILE: packages/mitmproxy/src/lib/dns/index.js method initDNS (line 10) | initDNS (dnsProviders, preSetIpList) { method hasDnsLookup (line 92) | hasDnsLookup (dnsConfig, hostname) { FILE: packages/mitmproxy/src/lib/dns/preset.js method constructor (line 4) | constructor (preSetIpList) { method _lookup (line 8) | async _lookup (_hostname) { FILE: packages/mitmproxy/src/lib/dns/tcp.js method constructor (line 10) | constructor (dnsName, cacheSize, preSetIpList, dnsServer, dnsServerPort) { method _dnsQueryPromise (line 16) | _dnsQueryPromise (hostname, type = 'A') { FILE: packages/mitmproxy/src/lib/dns/tls.js method constructor (line 7) | constructor (dnsName, cacheSize, preSetIpList, dnsServer, dnsServerPort,... method _dnsQueryPromise (line 14) | _dnsQueryPromise (hostname, type = 'A') { FILE: packages/mitmproxy/src/lib/dns/udp.js method constructor (line 9) | constructor (dnsName, cacheSize, preSetIpList, dnsServer, dnsServerPort) { method _dnsQueryPromise (line 18) | _dnsQueryPromise (hostname, type = 'A') { FILE: packages/mitmproxy/src/lib/dns/util/dns-over-tls.js constant TWO_BYTES (line 8) | const TWO_BYTES = 2 function getDnsQuery (line 10) | function getDnsQuery ({ type, name, klass, id }) { function query (line 19) | function query ({ host, servername, type, name, klass, port, rejectUnaut... FILE: packages/mitmproxy/src/lib/interceptor/impl/req/OPTIONS.js function readConfig (line 4) | function readConfig (config, defaultConfig) { method requestIntercept (line 18) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 51) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/abort.js method requestIntercept (line 4) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 85) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/baiduOcr.js function getTomorrow (line 1) | function getTomorrow () { function createBaiduOcrClient (line 34) | function createBaiduOcrClient (config) { function getConfig (line 46) | function getConfig (interceptOpt, tryCount, log) { function limitConfig (line 99) | function limitConfig (id, api) { function checkIsLimitConfig (line 105) | function checkIsLimitConfig (id, api) { method requestIntercept (line 114) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 191) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/cacheRequest.js function getMaxAge (line 1) | function getMaxAge (interceptOpt) { function getLastModifiedTimeFromIfModifiedSince (line 35) | function getLastModifiedTimeFromIfModifiedSince (rOptions, log) { method requestIntercept (line 60) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 102) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/proxy.js function replacePlaceholder0 (line 4) | function replacePlaceholder0 (url, matched, pre) { function replacePlaceholder (line 19) | function replacePlaceholder (url, rOptions, pathMatched, hostnameMatched) { function buildTargetUrl (line 38) | function buildTargetUrl (rOptions, urlConf, interceptOpt, matched, hostn... function doProxy (line 64) | function doProxy (proxyConf, rOptions, req, interceptOpt, matched, hostn... method requestIntercept (line 92) | requestIntercept (context, interceptOpt, req, res, ssl, next, matched, h... method is (line 158) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/redirect.js method requestIntercept (line 6) | requestIntercept (context, interceptOpt, req, res, ssl, next, matched, h... method is (line 30) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/requestReplace.js constant REMOVE (line 1) | const REMOVE = '[remove]' function replaceRequestHeaders (line 3) | function replaceRequestHeaders (rOptions, headers, log) { method requestIntercept (line 25) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 51) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/sni.js method requestIntercept (line 4) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 22) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/success.js method requestIntercept (line 4) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 85) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/req/unVerifySsl.js method requestIntercept (line 4) | requestIntercept (context, interceptOpt, req, res, ssl, next) { method is (line 18) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/res/AfterOPTIONSHeaders.js method responseIntercept (line 7) | responseIntercept (context, interceptOpt, req, res, proxyReq, proxyRes, ... method is (line 28) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/res/cacheResponse.js method responseIntercept (line 6) | responseIntercept (context, interceptOpt, req, res, proxyReq, proxyRes, ... method is (line 108) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/res/responseReplace.js constant REMOVE (line 4) | const REMOVE = '[remove]' function replaceResponseHeaders (line 7) | function replaceResponseHeaders (newHeaders, res, proxyRes) { method responseIntercept (line 70) | responseIntercept (context, interceptOpt, req, res, proxyReq, proxyRes, ... method is (line 113) | is (interceptOpt) { FILE: packages/mitmproxy/src/lib/interceptor/impl/res/script.js constant SCRIPT_URL_PRE (line 6) | const SCRIPT_URL_PRE = '/____ds_script____/' // 内置脚本的请求地址前缀 constant SCRIPT_PROXY_URL_PRE (line 7) | const SCRIPT_PROXY_URL_PRE = '/____ds_script_proxy____/' // 绝对地址脚本的伪脚本地址前缀 constant REMOVE (line 8) | const REMOVE = '[remove]' // 标记需要移除的头信息 function getScript (line 10) | function getScript (key, script) { function getScriptByUrlOrPath (line 16) | function getScriptByUrlOrPath (scriptUrlOrPath) { method responseIntercept (line 23) | responseIntercept (context, interceptOpt, req, res, proxyReq, proxyRes, ... method is (line 92) | is (interceptOpt) { method handleScriptInterceptConfig (line 96) | handleScriptInterceptConfig (intercepts) { FILE: packages/mitmproxy/src/lib/interceptor/index.js constant OPTIONS (line 2) | const OPTIONS = require('./impl/req/OPTIONS.js') FILE: packages/mitmproxy/src/lib/monkey/index.js function buildScript (line 7) | function buildScript (sc, content, scriptName) { function loadScript (line 66) | function loadScript (content, scriptName) { function readFile (line 105) | function readFile (rootDir, script) { method get (line 113) | get (rootDir) { method load (line 119) | load (rootDir) { FILE: packages/mitmproxy/src/lib/proxy/common/ProxyHttpAgent.js method getName (line 5) | getName (option) { FILE: packages/mitmproxy/src/lib/proxy/common/ProxyHttpsAgent.js method getName (line 5) | getName (option) { FILE: packages/mitmproxy/src/lib/proxy/common/config.js function buildDefaultCABasePath (line 20) | function buildDefaultCABasePath () { FILE: packages/mitmproxy/src/lib/proxy/common/util.js function getTimeoutConfig (line 17) | function getTimeoutConfig (hostname, serverSetting) { function createHttpsAgent (line 28) | function createHttpsAgent (timeoutConfig, verifySsl) { function createHttpAgent (line 60) | function createHttpAgent (timeoutConfig) { function createAgent (line 73) | function createAgent (protocol, timeoutConfig, verifySsl) { FILE: packages/mitmproxy/src/lib/proxy/compatible/compatible.js function _getConnectConfig (line 33) | function _getConnectConfig (hostname, port) { function _getRequestConfig (line 38) | function _getRequestConfig (hostname, port) { function _loadFromFile (line 46) | function _loadFromFile (defaultConfig) { function _saveConfigToFile (line 73) | function _saveConfigToFile () { method getConnectCompatibleConfig (line 94) | getConnectCompatibleConfig (hostname, port, manualCompatibleConfig = nul... method setConnectSsl (line 102) | setConnectSsl (hostname, port, ssl, autoSave = true) { method getRequestCompatibleConfig (line 126) | getRequestCompatibleConfig (rOptions, manualCompatibleConfig = null) { method setRequestRejectUnauthorized (line 134) | setRequestRejectUnauthorized (rOptions, rejectUnauthorized, autoSave = t... FILE: packages/mitmproxy/src/lib/proxy/middleware/InsertScriptMiddleware.js method getContentEncoding (line 25) | getContentEncoding (res) { method getCodec (line 33) | getCodec (encoding) { method supportedEncodingsStr (line 37) | supportedEncodingsStr () { method isHtml (line 41) | isHtml (res) { constant HEAD (line 46) | const HEAD = Buffer.from('') constant HEAD_UP (line 47) | const HEAD_UP = Buffer.from('') constant BODY (line 48) | const BODY = Buffer.from('') constant BODY_UP (line 49) | const BODY_UP = Buffer.from('') function chunkByteReplace (line 51) | function chunkByteReplace (_this, chunk, enc, callback, append) { function injectScriptIntoHtml (line 70) | function injectScriptIntoHtml (tags, chunk, script) { function handleResponseHeaders (line 86) | function handleResponseHeaders (res, proxyRes) { method requestIntercept (line 122) | requestIntercept (context, req, res, ssl, next) { method responseInterceptor (line 152) | responseInterceptor (req, res, proxyReq, proxyRes, ssl, next, append) { FILE: packages/mitmproxy/src/lib/proxy/middleware/overwall.js function matched (line 14) | function matched (hostname, overWallTargetMap) { function getUserBasePath (line 38) | function getUserBasePath () { function getTmpPacFilePath (line 44) | function getTmpPacFilePath () { function loadPacLastModifiedTime (line 48) | function loadPacLastModifiedTime (pacTxt) { function savePacFile (line 60) | function savePacFile (pacTxt) { function downloadPacAsync (line 92) | async function downloadPacAsync (pacConfig) { function createOverwallMiddleware (line 128) | function createOverwallMiddleware (overWallConfig) { FILE: packages/mitmproxy/src/lib/proxy/middleware/source/pac.js function createPacClient (line 5) | function createPacClient (pacFilePath) { FILE: packages/mitmproxy/src/lib/proxy/mitmproxy/createConnectHandler.js function isSslConnect (line 10) | function isSslConnect (sslConnectInterceptors, req, cltSocket, head) { function connect (line 55) | function connect (req, cltSocket, head, hostname, port, dnsConfig = null... FILE: packages/mitmproxy/src/lib/proxy/mitmproxy/createRequestHandler.js constant MAX_SLOW_TIME (line 13) | const MAX_SLOW_TIME = 8000 // 超过此时间 则认为太慢了 function countSlow (line 83) | function countSlow (isDnsIntercept, reason) { function onFree (line 110) | function onFree () { FILE: packages/mitmproxy/src/lib/proxy/mitmproxy/dnsLookup.js function createIpChecker (line 5) | function createIpChecker (tester) { method createLookupFunc (line 29) | createLookupFunc (res, dns, action, target, port, isDnsIntercept) { FILE: packages/mitmproxy/src/lib/proxy/mitmproxy/index.js method createProxy (line 12) | createProxy ({ method createCA (line 160) | createCA (caPaths) { FILE: packages/mitmproxy/src/lib/proxy/tls/CertAndKeyContainer.js method constructor (line 6) | constructor ({ method addCertPromise (line 19) | addCertPromise (certPromiseObj) { method getCertPromise (line 28) | getCertPromise (hostname, port, dnsName, mappingHostNames) { method reRankCert (line 59) | reRankCert (index) { FILE: packages/mitmproxy/src/lib/proxy/tls/FakeServersCenter.js function getDnsName (line 13) | function getDnsName (hostname) { method constructor (line 33) | constructor ({ maxLength = 256, requestHandler, upgradeHandler, caCert, ... method addServerPromise (line 45) | addServerPromise (serverPromiseObj) { method getServerPromise (line 59) | getServerPromise (hostname, port, ssl, manualCompatibleConfig) { method reRankServer (line 236) | reRankServer (index) { FILE: packages/mitmproxy/src/lib/speed/SpeedTester.js constant DISABLE_TIMEOUT (line 9) | const DISABLE_TIMEOUT = 60 * 60 * 1000 class SpeedTester (line 11) | class SpeedTester { method constructor (line 12) | constructor ({ hostname, port }) { method pickFastAliveIpObj (line 31) | pickFastAliveIpObj () { method touch (line 47) | touch () { method startChecker (line 54) | startChecker () { method getIpListFromDns (line 73) | async getIpListFromDns (dnsMap) { method getFromOneDns (line 96) | async getFromOneDns (dns) { method test (line 100) | async test () { method testBackups (line 118) | async testBackups () { method doTest (line 133) | async doTest (item, aliveList) { method testByTCP (line 164) | testByTCP (item) { method testOne (line 258) | testOne (item) { FILE: packages/mitmproxy/src/lib/speed/config.js method getConfig (line 5) | getConfig () { FILE: packages/mitmproxy/src/lib/speed/index.js function addSpeedTest (line 9) | function addSpeedTest (hostname, port) { function initSpeedTest (line 31) | function initSpeedTest (runtimeConfig) { function getAllSpeedTester (line 44) | function getAllSpeedTester () { function getSpeedTester (line 61) | function getSpeedTester (hostname, port) { function reSpeedTest (line 72) | function reSpeedTest () { function action (line 79) | function action (event) { FILE: packages/mitmproxy/src/options.js function buildIntercepts (line 12) | function buildIntercepts (intercepts) { function getExclusionArray (line 20) | function getExclusionArray (exclusions) { FILE: packages/mitmproxy/src/utils/util.js method getNodeVersion (line 5) | getNodeVersion () { FILE: packages/mitmproxy/src/utils/util.match.js function isMatched (line 5) | function isMatched (url, regexp) { function domainRegexply (line 22) | function domainRegexply (target) { function domainMapRegexply (line 29) | function domainMapRegexply (hostMap) { function matchHostname (line 63) | function matchHostname (hostMap, hostname, action) { function merge (line 110) | function merge (oldObj, newObj) { function matchHostnameAll (line 118) | function matchHostnameAll (hostMap, hostname, action) { FILE: packages/mitmproxy/src/utils/util.process.js method fireError (line 2) | fireError (e) { method fireStatus (line 7) | fireStatus (status) { FILE: packages/mitmproxy/test/baiduOcrTest.js constant APP_ID (line 4) | const APP_ID = '101474620' constant API_KEY (line 5) | const API_KEY = 'fqCvIHGisGwpsglzV2wdxZJ5' constant SECRET_KEY (line 6) | const SECRET_KEY = 'RhTOXUA4V6CrGuCTJJvUQ7z6Nl4m0Lij' FILE: packages/mitmproxy/test/dnsTest-abroad-doh-sni.mjs function count (line 48) | function count (isSuccess, hostname, idx, dns, result, cost) { FILE: packages/mitmproxy/test/dnsTest-abroad-dot-sni.mjs function count (line 65) | function count (isSuccess, hostname, idx, dns, result, cost) { FILE: packages/mitmproxy/test/lodashTest.js function isEmpty (line 13) | function isEmpty (obj) { FILE: test/test.js function testRequest (line 53) | function testRequest () {