mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
Updated What is rule file and how to write one (markdown)
@@ -94,7 +94,8 @@ These interface can be grouped into the following phases
|
|||||||
|
|
||||||
Tips about rule file
|
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
|
To invoke a rule file
|
||||||
|
|||||||
Reference in New Issue
Block a user