Take a watch on all request or matched controller
host: {
application_name:{
glance:{
flag:true,
http:[],
ajax:[],
socket:[]
}
}
}
To set watch on request require set flag : true
Watch on every regular http request in array of object
http:[
{"*":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
{"controller-name":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
]
Rule
Watch on every http request to pass key with *
or pass controller name
Watch http request while it is come
exitWatch http request before http response sending to client
scriptsPass array of script need to be called on http request entry or exit point
Watch on every regular ajax request in array of object
ajax:[
{"*":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
{"controller-name":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
]
Rule
Watch on every ajax request to pass key with *
or pass controller name
Watch ajax request while it is come
exitWatch ajax request before ajax response sending to client
scriptsPass array of script need to be called on ajax request entry or exit point
Watch on every regular socket request in array of object
socket:[
{"*": { entry:true , exit:true , scripts:["script-name-1","script-name-1"] } },
{"model-name":{entry:true,exit:true,scripts:["script-name-1","script-name-1"]}},
]
Rule
Watch on every socket request to pass key with *
or pass model-name
Watch http request while it is come
exitWatch http request before socket response sending to client
scriptsPass array of script need to be called on http request entry or exit point