Sitelet https://github.com/alibaba/anyproxy/commit/873a16ffc43addcde8af533b90ba3fd2ebfe5ebd
Skip to content

Commit 873a16f

Browse files
author
加里
committed
add readme for rule samples
1 parent bf75b96 commit 873a16f

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Rule module
4949
![](https://t.alipayobjects.com/images/T1v8pbXjJqXXXXXXXX.png)
5050

5151

52-
Using https features
52+
Https features
5353
----------------
5454
After configuring rootCA, anyproxy could help to decrypt https requests, whose approach is also called Man-In-The-Middle(MITM).
5555

‎rule_sample/README.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
The following are sample rules.
2+
3+
* rule__blank.js
4+
* blank rule file with some comments. You may read this before writing your own rule file.
5+
* 空白的规则文件模板,和一些注释
6+
* rule_adjust_response_time.js
7+
* delay all the response for 1500ms
8+
* 把所有的响应延迟1500毫秒
9+
* rule_allow_CORS.js
10+
* add CORS headers to allow cross-domain ajax request
11+
* 为ajax请求增加跨域头
12+
* rule_assign_ip_address.js
13+
* assign an ip address to a specified domain
14+
* 为某个域名指定ip地址
15+
* rule_intercept_some_https_requests.js
16+
* intercept https requests toward github.com and append some data
17+
* 截获github.com的https请求,再在最后加点文字
18+
* rule_remove_cache_header.js
19+
* remove all cache-related headers from server
20+
* 去除响应头里缓存相关的头
21+
* rule_replace_request_option.js
22+
* replace request parameters before sending to the server
23+
* 在请求发送到服务端前对参数做一些调整
24+
* rule_replace_response_data.js
25+
* modify response data
26+
* 修改响应数据
27+
* rule_replace_response_status_code.js
28+
* replace server's status code
29+
* 改变服务端响应的http状态码
30+
* rule_use_local_data.js
31+
* map some requests to local file
32+
* 把图片响应映射到本地

0 commit comments

Comments
 (0)