任意文本编辑器,建议为vscode
let config_read_type = 'websocket';//local,file,websocket,http
可选择使用本地缓存、文件、websocket、http等方式读取配置信息
const wsUrl = 'ws://127.0.0.1:9002';
发送获取config请求
{"messageType":131073}
返回对应的config信息
{
"debug_mode" : true,
"format_version" : "1.1",
"headers" : [
{
"action" : "add",
"apply_on" : "req",
"comment" : "test",
"header_name" : "VTM_terminalno",
"header_value" : "7555980277",
"status" : "on",
"url_contains" : ""
}
],
"target_page" : "",
"use_url_contains" : false
}
在默认chrome浏览器中,通过chrome extension的方式集成到chrome浏览器中 以命令行的方式启动,如: C:\Program Files\Google\Chrome\Application\chrome.exe --load-extension=D:\addin\res\VTMModifyHeaders
windows、linux、macos
javascript