diff --git a/README.md b/README.md index 14f656c..2169708 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,10 @@ Feature Usage -------------- -### step 0 - setup env - -* install [NodeJS](http://nodejs.org/) ### step 1 - install +* install [NodeJS](http://nodejs.org/) * ``npm install -g anyproxy`` , may require ``sudo`` ### step 2 - start server @@ -43,7 +41,8 @@ module.exports = { return false; }, - //response to user via local logic, be called when shouldUseLocalResponse returns true + //you may deal the response locally instead of sending it to server + //this function be called when shouldUseLocalResponse returns true //callback(statusCode,resHeader,responseData) //e.g. callback(200,{"content-type":"text/html"},"hello world") dealLocalResponse : function(req,callback){ diff --git a/rule_sample/rule__blank.js b/rule_sample/rule__blank.js index 31617cd..6498254 100644 --- a/rule_sample/rule__blank.js +++ b/rule_sample/rule__blank.js @@ -10,7 +10,8 @@ module.exports = { return false; }, - //response to user via local logic, be called when shouldUseLocalResponse returns true + //you may deal the response locally instead of sending it to server + //this function be called when shouldUseLocalResponse returns true //callback(statusCode,resHeader,responseData) //e.g. callback(200,{"content-type":"text/html"},"hello world") dealLocalResponse : function(req,callback){