mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
update doc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user