Updated What is rule file and how to write one (markdown)

ottomao 2014-11-18 03:57:04 -08:00
parent 0be60bc455
commit 371f4538a3

@ -94,7 +94,8 @@ These interface can be grouped into the following phases
Tips about rule file
------------------------
* for a specific request, function from phase 1 to 3 will be called in order. For the same request, the parameter `req` is always the same. With this feature, you could set your flag in `req` object in one function and fetch it from another function.
* the source code with rule file can be found in [./lib/requestHandler.js](https://github.com/alibaba/anyproxy/blob/master/lib/requestHandler.js). Reading it when you want to learn anyproxy further.
To invoke a rule file