One request triggers multiple event callbacks.
my config like this, but only one will work.
[
{
"description":"异步事件1",
"request":{
"uri":"/eventAsync",
"method":"get"
},
"response":{
"text":"eventeventAsync ..."
},
"on":{
"complete":{
"async":"true",
"latency":3000,
"get" : {
"url":"http://test-mysite/eventAsync01"
}
}
}
},
{
"description":"异步事件2",
"request":{
"uri":"/eventAsync",
"method":"get"
},
"response":{
"text":"eventeventAsync 2 ..."
},
"on":{
"complete":{
"async":"true",
"latency":5000,
"get" : {
"url":"http://test-mysite/eventAsync02"
}
}
}
}
]
One request triggers multiple event callbacks.
my config like this, but only one will work.
[ { "description":"异步事件1", "request":{ "uri":"/eventAsync", "method":"get" }, "response":{ "text":"eventeventAsync ..." }, "on":{ "complete":{ "async":"true", "latency":3000, "get" : { "url":"http://test-mysite/eventAsync01" } } } }, { "description":"异步事件2", "request":{ "uri":"/eventAsync", "method":"get" }, "response":{ "text":"eventeventAsync 2 ..." }, "on":{ "complete":{ "async":"true", "latency":5000, "get" : { "url":"http://test-mysite/eventAsync02" } } } } ]