update doc

This commit is contained in:
加里 2014-09-03 15:39:31 +08:00
parent 87167ab01d
commit bed132d7c5
3 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,8 @@
module.exports = {
summary:function(){
console.log("this is the default rule for anyproxy, which supports CORS request");
},
shouldUseLocalResponse : function(req,reqBody){
//intercept all options request
if(req.method == "OPTIONS"){

View File

@ -1,6 +1,6 @@
{
"name": "anyproxy",
"version": "2.1.1",
"version": "2.1.2",
"description": "a charles/fiddler like proxy written in NodeJs, which can handle HTTPS requests and CROS perfectly.",
"main": "proxy.js",
"bin": {
@ -19,7 +19,7 @@
"iconv-lite": "^0.4.4"
},
"devDependencies": {
"tunnel": "0.0.3"
},
"scripts": {
"test": "nodeunit test.js"

View File

@ -2,6 +2,9 @@ module.exports = {
/*
these functions will overwrite the default ones, write your own when necessary.
*/
summary:function(){
console.log("this is a blank rule for anyproxy");
},
//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