From 3b7140d9fdb6cfac4c00b7ee0bf3883de61169dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=A0=E9=87=8C?= Date: Mon, 1 Sep 2014 17:23:01 +0800 Subject: [PATCH] update readme --- README.md | 7 +++---- rule_sample/rule__blank.js | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) 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){