Skip to content

Commit fbd3a4f

Browse files
committed
doc: update docs/mitmproxy.md
1 parent 2f81880 commit fbd3a4f

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

docs/mitmproxy.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ $ brew install mitmproxy # macOS
5555
```
5656

5757
### 代理模式
58+
<!--rehype:wrap-class=col-span-2-->
5859

5960
Argument | Effect
6061
:-- | --
@@ -64,6 +65,48 @@ Argument | Effect
6465
`-U UPSTREAM_PROXY`, `--upstream UPSTREAM_PROXY` | 将所有请求转发到上游代理服务器:`http://host[:port]`
6566
<!--rehype:className=style-list-->
6667

68+
### 复制到剪贴板
69+
70+
命令语法:
71+
72+
```
73+
:export.clip format flow
74+
```
75+
76+
例子:
77+
78+
| 描述 | 命令示例 |
79+
| ---|--- |
80+
| 1. 复制为 curl 命令 | `:export.clip curl @focus` |
81+
| 2. 复制为 httpie | `:export.clip httpie @focus` |
82+
| 3. 复制为原始文件 | `:export.clip raw @focus` |
83+
| 4. 复制为原始 HTTP 请求 | `:export.clip raw_request @focus` |
84+
| 5. 复制为原始 HTTP 响应 | `:export.clip raw_response @focus` |
85+
<!--rehype:className=style-list-->
86+
87+
将流程导出到系统剪贴板
88+
89+
### 保存到文件
90+
91+
命令语法:
92+
93+
```
94+
:export.file format flow path
95+
```
96+
97+
例子:
98+
99+
| 描述 | 命令示例 |
100+
| ---|--- |
101+
| 1. 导出到 `/tmp/a.curl` | `:export.file curl @focus /tmp/a.curl` |
102+
| 2. 导出到 `/tmp/a.httpie` | `:export.file httpie @focus /tmp/a.httpie` |
103+
| 3. 导出到 `/tmp/a.raw` | `:export.file raw @focus /tmp/a.raw` |
104+
| 4. 导出到 `/tmp/a.request` | `:export.file raw_request @focus /tmp/a.request` |
105+
| 5. 导出到 `/tmp/a.response` | `:export.file raw_response @focus /tmp/a.response` |
106+
<!--rehype:className=style-list-->
107+
108+
将流程导出到系统剪贴板
109+
67110
### 流(视图)
68111
<!--rehype:wrap-class=row-span-2-->
69112

0 commit comments

Comments
 (0)