mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-01 19:49:01 +00:00
building docs
This commit is contained in:
@@ -198,6 +198,22 @@
|
||||
|
||||
<li class="chapter " data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./#代理websocket">
|
||||
|
||||
|
||||
<div class="summary-title-span 代理WebSocket">
|
||||
代理WebSocket
|
||||
</div>
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="./">
|
||||
|
||||
<a href="./#rule模块">
|
||||
|
||||
|
||||
@@ -213,7 +229,7 @@
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.4.1" data-path="./">
|
||||
<li class="chapter " data-level="1.5.1" data-path="./">
|
||||
|
||||
<a href="./#开发示例">
|
||||
|
||||
@@ -229,7 +245,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.2" data-path="./">
|
||||
<li class="chapter " data-level="1.5.2" data-path="./">
|
||||
|
||||
<a href="./#处理流程">
|
||||
|
||||
@@ -245,7 +261,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.3" data-path="./">
|
||||
<li class="chapter " data-level="1.5.3" data-path="./">
|
||||
|
||||
<a href="./#如何引用">
|
||||
|
||||
@@ -266,7 +282,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="./">
|
||||
<li class="chapter " data-level="1.6" data-path="./">
|
||||
|
||||
<a href="./#rule接口文档">
|
||||
|
||||
@@ -283,7 +299,7 @@
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.5.1" data-path="./">
|
||||
<li class="chapter " data-level="1.6.1" data-path="./">
|
||||
|
||||
<a href="./#summary">
|
||||
|
||||
@@ -299,7 +315,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.2" data-path="./">
|
||||
<li class="chapter " data-level="1.6.2" data-path="./">
|
||||
|
||||
<a href="./#beforesendrequest">
|
||||
|
||||
@@ -315,7 +331,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.3" data-path="./">
|
||||
<li class="chapter " data-level="1.6.3" data-path="./">
|
||||
|
||||
<a href="./#beforesendresponse">
|
||||
|
||||
@@ -331,7 +347,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.4" data-path="./">
|
||||
<li class="chapter " data-level="1.6.4" data-path="./">
|
||||
|
||||
<a href="./#beforedealhttpsrequest">
|
||||
|
||||
@@ -347,7 +363,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.5" data-path="./">
|
||||
<li class="chapter " data-level="1.6.5" data-path="./">
|
||||
|
||||
<a href="./#onerror">
|
||||
|
||||
@@ -363,7 +379,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.6" data-path="./">
|
||||
<li class="chapter " data-level="1.6.6" data-path="./">
|
||||
|
||||
<a href="./#onconnecterror">
|
||||
|
||||
@@ -384,7 +400,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="./">
|
||||
<li class="chapter " data-level="1.7" data-path="./">
|
||||
|
||||
<a href="./#rule样例">
|
||||
|
||||
@@ -401,7 +417,7 @@
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.6.1" data-path="./">
|
||||
<li class="chapter " data-level="1.7.1" data-path="./">
|
||||
|
||||
<a href="./#使用本地数据">
|
||||
|
||||
@@ -417,7 +433,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="./">
|
||||
<li class="chapter " data-level="1.7.2" data-path="./">
|
||||
|
||||
<a href="./#修改请求头">
|
||||
|
||||
@@ -433,7 +449,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="./">
|
||||
<li class="chapter " data-level="1.7.3" data-path="./">
|
||||
|
||||
<a href="./#修改请求数据">
|
||||
|
||||
@@ -449,7 +465,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="./">
|
||||
<li class="chapter " data-level="1.7.4" data-path="./">
|
||||
|
||||
<a href="./#修改请求的目标地址">
|
||||
|
||||
@@ -465,7 +481,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.5" data-path="./">
|
||||
<li class="chapter " data-level="1.7.5" data-path="./">
|
||||
|
||||
<a href="./#修改请求协议">
|
||||
|
||||
@@ -481,7 +497,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.6" data-path="./">
|
||||
<li class="chapter " data-level="1.7.6" data-path="./">
|
||||
|
||||
<a href="./#修改返回状态码">
|
||||
|
||||
@@ -497,7 +513,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.7" data-path="./">
|
||||
<li class="chapter " data-level="1.7.7" data-path="./">
|
||||
|
||||
<a href="./#修改返回头">
|
||||
|
||||
@@ -513,7 +529,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.8" data-path="./">
|
||||
<li class="chapter " data-level="1.7.8" data-path="./">
|
||||
|
||||
<a href="./#修改返回内容并延迟">
|
||||
|
||||
@@ -534,7 +550,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="./">
|
||||
<li class="chapter " data-level="1.8" data-path="./">
|
||||
|
||||
<a href="./#证书配置">
|
||||
|
||||
@@ -551,7 +567,7 @@
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.7.1" data-path="./">
|
||||
<li class="chapter " data-level="1.8.1" data-path="./">
|
||||
|
||||
<a href="./#osx系统信任ca证书">
|
||||
|
||||
@@ -567,7 +583,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="./">
|
||||
<li class="chapter " data-level="1.8.2" data-path="./">
|
||||
|
||||
<a href="./#windows系统信任ca证书">
|
||||
|
||||
@@ -583,7 +599,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="./">
|
||||
<li class="chapter " data-level="1.8.3" data-path="./">
|
||||
|
||||
<a href="./#配置osx系统代理">
|
||||
|
||||
@@ -599,7 +615,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.4" data-path="./">
|
||||
<li class="chapter " data-level="1.8.4" data-path="./">
|
||||
|
||||
<a href="./#配置浏览器http代理">
|
||||
|
||||
@@ -615,7 +631,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.5" data-path="./">
|
||||
<li class="chapter " data-level="1.8.5" data-path="./">
|
||||
|
||||
<a href="./#ios系统信任ca证书">
|
||||
|
||||
@@ -631,7 +647,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.6" data-path="./">
|
||||
<li class="chapter " data-level="1.8.6" data-path="./">
|
||||
|
||||
<a href="./#ios--103信任ca证书">
|
||||
|
||||
@@ -647,7 +663,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.7" data-path="./">
|
||||
<li class="chapter " data-level="1.8.7" data-path="./">
|
||||
|
||||
<a href="./#安卓系统信任ca证书">
|
||||
|
||||
@@ -663,7 +679,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.8" data-path="./">
|
||||
<li class="chapter " data-level="1.8.8" data-path="./">
|
||||
|
||||
<a href="./#配置iosandroid系统代理">
|
||||
|
||||
@@ -684,7 +700,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.8" data-path="./">
|
||||
<li class="chapter " data-level="1.9" data-path="./">
|
||||
|
||||
<a href="./#faq">
|
||||
|
||||
@@ -946,6 +962,12 @@ anyproxy --intercept <span class="hljs-comment">#启动AnyProxy,
|
||||
<ul>
|
||||
<li><a href="#证书配置">附录:如何信任CA证书</a></li>
|
||||
</ul>
|
||||
<h1 id="代理websocket">代理WebSocket</h1>
|
||||
<pre><code class="lang-bash">anyproxy --ws-intercept
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>当启用<code>HTTPS</code>代理时,<code>wss</code>也会被代理,但是不会被AnyProxy记录。需要开启<code>--ws-intercept</code>后才会从界面上看到相应内容。</p>
|
||||
</blockquote>
|
||||
<h1 id="rule模块">rule模块</h1>
|
||||
<p>AnyProxy提供了二次开发的能力,你可以用js编写自己的规则模块(rule),来自定义网络请求的处理逻辑。</p>
|
||||
<blockquote>
|
||||
@@ -1636,7 +1658,7 @@ newResponse.body += <span class="hljs-string">'--from anyproxy--'</spa
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"简介","level":"1.1","depth":1,"next":{"title":"快速开始","level":"1.2","depth":1,"anchor":"#快速开始","path":"README.md","ref":"README.md#快速开始","articles":[{"title":"安装","level":"1.2.1","depth":2,"anchor":"#安装","path":"README.md","ref":"README.md#安装","articles":[]},{"title":"启动","level":"1.2.2","depth":2,"anchor":"#启动","path":"README.md","ref":"README.md#启动","articles":[]},{"title":"其他命令","level":"1.2.3","depth":2,"anchor":"#其他命令","path":"README.md","ref":"README.md#其他命令","articles":[]},{"title":"作为npm模块启动","level":"1.2.4","depth":2,"anchor":"#作为npm模块使用","path":"README.md","ref":"README.md#作为npm模块使用","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"AnyProxy","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AnyProxy","language":"cn","gitbook":"*","description":"A fully configurable http/https proxy in NodeJS"},"file":{"path":"README.md","mtime":"2018-02-05T02:16:34.020Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-02-05T02:16:35.891Z"},"basePath":".","book":{"language":"cn"}});
|
||||
gitbook.page.hasChanged({"page":{"title":"简介","level":"1.1","depth":1,"next":{"title":"快速开始","level":"1.2","depth":1,"anchor":"#快速开始","path":"README.md","ref":"README.md#快速开始","articles":[{"title":"安装","level":"1.2.1","depth":2,"anchor":"#安装","path":"README.md","ref":"README.md#安装","articles":[]},{"title":"启动","level":"1.2.2","depth":2,"anchor":"#启动","path":"README.md","ref":"README.md#启动","articles":[]},{"title":"其他命令","level":"1.2.3","depth":2,"anchor":"#其他命令","path":"README.md","ref":"README.md#其他命令","articles":[]},{"title":"作为npm模块启动","level":"1.2.4","depth":2,"anchor":"#作为npm模块使用","path":"README.md","ref":"README.md#作为npm模块使用","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"AnyProxy","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AnyProxy","language":"cn","gitbook":"*","description":"A fully configurable http/https proxy in NodeJS"},"file":{"path":"README.md","mtime":"2018-02-05T16:06:47.879Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-02-05T16:06:49.493Z"},"basePath":".","book":{"language":"cn"}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
File diff suppressed because one or more lines are too long
@@ -200,6 +200,14 @@ anyproxy --intercept #启动AnyProxy,并解析所有https请求
|
||||
|
||||
* [附录:如何信任CA证书](#证书配置)
|
||||
|
||||
# 代理WebSocket
|
||||
|
||||
```bash
|
||||
anyproxy --ws-intercept
|
||||
```
|
||||
|
||||
> 当启用`HTTPS`代理时,`wss`也会被代理,但是不会被AnyProxy记录。需要开启`--ws-intercept`后才会从界面上看到相应内容。
|
||||
|
||||
# rule模块
|
||||
|
||||
AnyProxy提供了二次开发的能力,你可以用js编写自己的规则模块(rule),来自定义网络请求的处理逻辑。
|
||||
|
Reference in New Issue
Block a user