doc: update to lastest

This commit is contained in:
hyb1996
2018-04-13 22:31:02 +08:00
parent 2162bd5b28
commit a00bd293b3
7 changed files with 6098 additions and 43 deletions

View File

@@ -125,10 +125,8 @@ http.get("www.baidu.com", {}, function(res, err){
<pre><code>console.show();
var r = http.get(&quot;www.baidu.com&quot;, {
headers: {
&quot;Accept-Language&quot;: &quot;zh-cn,zh;q=0.5&quot;,
&quot;User-Agent: &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X
10_7_0) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56
Safari/535.11&quot;
&#39;Accept-Language&#39;: &#39;zh-cn,zh;q=0.5&#39;,
&#39;User-Agent&#39;: &#39;Mozilla/5.0(Macintosh;IntelMacOSX10_7_0)AppleWebKit/535.11(KHTML,likeGecko)Chrome/17.0.963.56Safari/535.11&#39;
}
});
log(&quot;code = &quot; + r.statusCode);