mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
building docs
This commit is contained in:
@@ -185,6 +185,22 @@
|
||||
|
||||
<li class="chapter " data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./#proxy-websocket">
|
||||
|
||||
|
||||
<div class="summary-title-span Proxy WebSocket">
|
||||
Proxy WebSocket
|
||||
</div>
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="./">
|
||||
|
||||
<a href="./#rule-introduction">
|
||||
|
||||
|
||||
@@ -200,7 +216,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="./#sample">
|
||||
|
||||
@@ -216,7 +232,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.2" data-path="./">
|
||||
<li class="chapter " data-level="1.5.2" data-path="./">
|
||||
|
||||
<a href="./#how-does-it-work">
|
||||
|
||||
@@ -232,7 +248,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.3" data-path="./">
|
||||
<li class="chapter " data-level="1.5.3" data-path="./">
|
||||
|
||||
<a href="./#how-to-load-rule-module">
|
||||
|
||||
@@ -253,7 +269,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="./">
|
||||
<li class="chapter " data-level="1.6" data-path="./">
|
||||
|
||||
<a href="./#rule-module-interface">
|
||||
|
||||
@@ -270,7 +286,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">
|
||||
|
||||
@@ -286,7 +302,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">
|
||||
|
||||
@@ -302,7 +318,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">
|
||||
|
||||
@@ -318,7 +334,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">
|
||||
|
||||
@@ -334,7 +350,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">
|
||||
|
||||
@@ -350,7 +366,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">
|
||||
|
||||
@@ -371,7 +387,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="./">
|
||||
<li class="chapter " data-level="1.7" data-path="./">
|
||||
|
||||
<a href="./#rule-samples">
|
||||
|
||||
@@ -388,7 +404,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="./#use-local-response">
|
||||
|
||||
@@ -404,7 +420,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="./">
|
||||
<li class="chapter " data-level="1.7.2" data-path="./">
|
||||
|
||||
<a href="./#modify-request-header">
|
||||
|
||||
@@ -420,7 +436,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="./">
|
||||
<li class="chapter " data-level="1.7.3" data-path="./">
|
||||
|
||||
<a href="./#modify-request-body">
|
||||
|
||||
@@ -436,7 +452,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="./">
|
||||
<li class="chapter " data-level="1.7.4" data-path="./">
|
||||
|
||||
<a href="./#modify-the-request-target">
|
||||
|
||||
@@ -452,7 +468,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.5" data-path="./">
|
||||
<li class="chapter " data-level="1.7.5" data-path="./">
|
||||
|
||||
<a href="./#modify-request-protocol">
|
||||
|
||||
@@ -468,7 +484,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.6" data-path="./">
|
||||
<li class="chapter " data-level="1.7.6" data-path="./">
|
||||
|
||||
<a href="./#modify-response-status-code">
|
||||
|
||||
@@ -484,7 +500,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.7" data-path="./">
|
||||
<li class="chapter " data-level="1.7.7" data-path="./">
|
||||
|
||||
<a href="./#modify-the-response-header">
|
||||
|
||||
@@ -500,7 +516,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.8" data-path="./">
|
||||
<li class="chapter " data-level="1.7.8" data-path="./">
|
||||
|
||||
<a href="./#modify-response-data-and-delay">
|
||||
|
||||
@@ -521,7 +537,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="./">
|
||||
<li class="chapter " data-level="1.8" data-path="./">
|
||||
|
||||
<a href="./#config-certification">
|
||||
|
||||
@@ -538,7 +554,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="./#config-root-ca-in-osx">
|
||||
|
||||
@@ -554,7 +570,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="./">
|
||||
<li class="chapter " data-level="1.8.2" data-path="./">
|
||||
|
||||
<a href="./#config-root-ca-in-windows">
|
||||
|
||||
@@ -570,7 +586,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="./">
|
||||
<li class="chapter " data-level="1.8.3" data-path="./">
|
||||
|
||||
<a href="./#config-osx-system-proxy">
|
||||
|
||||
@@ -586,7 +602,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.4" data-path="./">
|
||||
<li class="chapter " data-level="1.8.4" data-path="./">
|
||||
|
||||
<a href="./#config-http-proxy-server">
|
||||
|
||||
@@ -602,7 +618,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.5" data-path="./">
|
||||
<li class="chapter " data-level="1.8.5" data-path="./">
|
||||
|
||||
<a href="./#trust-root-ca-in-ios">
|
||||
|
||||
@@ -618,7 +634,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.6" data-path="./">
|
||||
<li class="chapter " data-level="1.8.6" data-path="./">
|
||||
|
||||
<a href="./#trust-root-ca-in-ios-after-103">
|
||||
|
||||
@@ -634,7 +650,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.7" data-path="./">
|
||||
<li class="chapter " data-level="1.8.7" data-path="./">
|
||||
|
||||
<a href="./#trust-root-ca-in-android">
|
||||
|
||||
@@ -650,7 +666,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.8" data-path="./">
|
||||
<li class="chapter " data-level="1.8.8" data-path="./">
|
||||
|
||||
<a href="./#config-iosandroid-proxy-server">
|
||||
|
||||
@@ -671,7 +687,7 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter active" data-level="1.8" data-path="./">
|
||||
<li class="chapter active" data-level="1.9" data-path="./">
|
||||
|
||||
<a href="./">
|
||||
|
||||
@@ -932,6 +948,12 @@ anyproxy --intercept <span class="hljs-comment">#launch anyproxy and intercept a
|
||||
<ul>
|
||||
<li><a href="#config-certification">Appendix:how to trust CA</a></li>
|
||||
</ul>
|
||||
<h1 id="proxy-websocket">Proxy WebSocket</h1>
|
||||
<pre><code class="lang-bash">anyproxy --ws-intercept
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>The <code>wss</code> requests will be handled automatically when the <code>HTTPS</code> intercept is turned on, but AnyProxy will not record the data by default. You need to specify the <code>--ws-intercept</code> to tell AnyProxy to record it.</p>
|
||||
</blockquote>
|
||||
<h1 id="rule-introduction">Rule Introduction</h1>
|
||||
<p>AnyProxy provides the ability to load your own rules written in javascript. With rule module, you could customize the logic to handle requests.</p>
|
||||
<blockquote>
|
||||
@@ -1624,7 +1646,7 @@ You can change the request with rule of course. For this scenario, all you need
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Getting-Start","level":"1.2","depth":1,"anchor":"#getting-start","path":"README.md","ref":"README.md#getting-start","articles":[{"title":"Install","level":"1.2.1","depth":2,"anchor":"#install","path":"README.md","ref":"README.md#install","articles":[]},{"title":"Launch","level":"1.2.2","depth":2,"anchor":"#launch","path":"README.md","ref":"README.md#launch","articles":[]},{"title":"Options","level":"1.2.3","depth":2,"anchor":"#options","path":"README.md","ref":"README.md#options","articles":[]},{"title":"As Node Module","level":"1.2.4","depth":2,"anchor":"#use-anyproxy-as-an-npm-module","path":"README.md","ref":"README.md#use-anyproxy-as-an-npm-module","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.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":"en","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":"en"}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Getting-Start","level":"1.2","depth":1,"anchor":"#getting-start","path":"README.md","ref":"README.md#getting-start","articles":[{"title":"Install","level":"1.2.1","depth":2,"anchor":"#install","path":"README.md","ref":"README.md#install","articles":[]},{"title":"Launch","level":"1.2.2","depth":2,"anchor":"#launch","path":"README.md","ref":"README.md#launch","articles":[]},{"title":"Options","level":"1.2.3","depth":2,"anchor":"#options","path":"README.md","ref":"README.md#options","articles":[]},{"title":"As Node Module","level":"1.2.4","depth":2,"anchor":"#use-anyproxy-as-an-npm-module","path":"README.md","ref":"README.md#use-anyproxy-as-an-npm-module","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.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":"en","gitbook":"*","description":"A fully configurable http/https proxy in NodeJS"},"file":{"path":"README.md","mtime":"2018-02-05T16:06:47.880Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-02-05T16:06:49.493Z"},"basePath":".","book":{"language":"en"}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -200,6 +200,13 @@ anyproxy --intercept #launch anyproxy and intercept all https traffic
|
||||
|
||||
* [Appendix:how to trust CA](#config-certification)
|
||||
|
||||
# Proxy WebSocket
|
||||
|
||||
```bash
|
||||
anyproxy --ws-intercept
|
||||
```
|
||||
> The `wss` requests will be handled automatically when the `HTTPS` intercept is turned on, but AnyProxy will not record the data by default. You need to specify the `--ws-intercept` to tell AnyProxy to record it.
|
||||
|
||||
# Rule Introduction
|
||||
|
||||
AnyProxy provides the ability to load your own rules written in javascript. With rule module, you could customize the logic to handle requests.
|
||||
|
||||
Reference in New Issue
Block a user