mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-05 15:39:30 +00:00
Updated What is rule file and how to write one (markdown)
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user