Skip to content

Commit

Permalink
doc: update docs/mitmproxy.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 16, 2023
1 parent 2f81880 commit fbd3a4f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docs/mitmproxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ $ brew install mitmproxy # macOS
```

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

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

### 复制到剪贴板

命令语法:

```
:export.clip format flow
```

例子:

| 描述 | 命令示例 |
| ---|--- |
| 1. 复制为 curl 命令 | `:export.clip curl @focus` |
| 2. 复制为 httpie | `:export.clip httpie @focus` |
| 3. 复制为原始文件 | `:export.clip raw @focus` |
| 4. 复制为原始 HTTP 请求 | `:export.clip raw_request @focus` |
| 5. 复制为原始 HTTP 响应 | `:export.clip raw_response @focus` |
<!--rehype:className=style-list-->

将流程导出到系统剪贴板

### 保存到文件

命令语法:

```
:export.file format flow path
```

例子:

| 描述 | 命令示例 |
| ---|--- |
| 1. 导出到 `/tmp/a.curl` | `:export.file curl @focus /tmp/a.curl` |
| 2. 导出到 `/tmp/a.httpie` | `:export.file httpie @focus /tmp/a.httpie` |
| 3. 导出到 `/tmp/a.raw` | `:export.file raw @focus /tmp/a.raw` |
| 4. 导出到 `/tmp/a.request` | `:export.file raw_request @focus /tmp/a.request` |
| 5. 导出到 `/tmp/a.response` | `:export.file raw_response @focus /tmp/a.response` |
<!--rehype:className=style-list-->

将流程导出到系统剪贴板

### 流(视图)
<!--rehype:wrap-class=row-span-2-->

Expand Down

0 comments on commit fbd3a4f

Please sign in to comment.