7
7
< title > Introduction · AnyProxy</ title >
8
8
< meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
9
9
< meta name ="description " content ="">
10
- < meta name ="generator " content ="GitBook 3.2.3 ">
10
+ < meta name ="generator " content ="GitBook 3.2.2 ">
11
11
< meta name ="author " content ="AnyProxy ">
12
12
13
13
@@ -795,11 +795,11 @@ <h3 id="use-anyproxy-as-an-npm-module">Use AnyProxy as an npm module</h3>
795
795
rule: < span class ="hljs-built_in "> require</ span > (< span class ="hljs-string "> 'myRuleModule'</ span > ),
796
796
webInterface: {
797
797
enable: < span class ="hljs-literal "> true</ span > ,
798
- webPort: < span class ="hljs-number "> 8002</ span > ,
799
- wsPort: < span class ="hljs-number "> 8003</ span > ,
798
+ webPort: < span class ="hljs-number "> 8002</ span >
800
799
},
801
800
throttle: < span class ="hljs-number "> 10000</ span > ,
802
801
forceProxyHttps: < span class ="hljs-literal "> false</ span > ,
802
+ wsIntercept: < span class ="hljs-literal "> false</ span > ,
803
803
silent: < span class ="hljs-literal "> false</ span >
804
804
};
805
805
< span class ="hljs-keyword "> const</ span > proxyServer = < span class ="hljs-keyword "> new</ span > AnyProxy.ProxyServer(options);
@@ -823,11 +823,12 @@ <h3 id="use-anyproxy-as-an-npm-module">Use AnyProxy as an npm module</h3>
823
823
< li > < code > port</ code > {number} required, port number of proxy server</ li >
824
824
< li > < code > rule</ code > {object} your rule module</ li >
825
825
< li > < code > throttle</ code > {number} throttle in kb/s, unlimited for default</ li >
826
- < li > < code > forceProxyHttps</ code > {boolean} in force intercept all https request, false for default</ li >
827
- < li > < code > silent</ code > {boolean} if keep silent in console, false for default< code > false</ code > </ li >
828
- < li > < code > dangerouslyIgnoreUnauthorized</ code > {boolean} if ignore certificate error in request, false for default</ li >
826
+ < li > < code > forceProxyHttps</ code > {boolean} in force intercept all https request, default to < code > false</ code > </ li >
827
+ < li > < code > silent</ code > {boolean} if keep silent in console, false for default < code > false</ code > </ li >
828
+ < li > < code > dangerouslyIgnoreUnauthorized</ code > {boolean} if ignore certificate error in request, default to < code > false</ code > </ li >
829
+ < li > < code > wsIntercept</ code > {boolean} whether to intercept websocket, default to < code > false</ code > </ li >
829
830
< li > < code > webInterface</ code > {object} config for web interface< ul >
830
- < li > < code > enable</ code > {boolean} if enable web interface, false for default </ li >
831
+ < li > < code > enable</ code > {boolean} if enable web interface, default to < code > false </ code > </ li >
831
832
< li > < code > webPort</ code > {number} port number for web interface</ li >
832
833
</ ul >
833
834
</ li >
@@ -1623,7 +1624,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
1623
1624
< script >
1624
1625
var gitbook = gitbook || [ ] ;
1625
1626
gitbook . push ( function ( ) {
1626
- 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-01-03T15:10:19.585Z" , "type" :"markdown" } , "gitbook" :{ "version" :"3.2.3" , "time" :"2018-01-03T15:10:20.722Z" } , "basePath" :"." , "book" :{ "language" :"en" } } ) ;
1627
+ 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" } } ) ;
1627
1628
} ) ;
1628
1629
</ script >
1629
1630
</ div >
0 commit comments