update doc

This commit is contained in:
加里
2014-09-03 15:20:57 +08:00
parent c5624a3c6b
commit e38d5fe7b1
4 changed files with 28 additions and 27 deletions

View File

@@ -6,11 +6,7 @@ module.exports = {
//whether to intercept this request by local logic
//if the return value is true, anyproxy will call dealLocalResponse to get response data and will not send request to remote server anymore
shouldUseLocalResponse : function(req,reqBody){
if(/hello/.test(reqBody.toString())){
return true;
}else{
return false;
}
return false;
},
//you may deal the response locally instead of sending it to server