diff options
author | Ryan <ry@tinyclouds.org> | 2009-05-20 18:05:31 +0400 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-05-20 18:06:08 +0400 |
commit | cb3a11d72a1e9735a5d3f1127993d740f56c686b (patch) | |
tree | 9ec592adc4bc59fb74ec3026f621229a71d82736 /website | |
parent | 691467670dfd08f00fe482b8fbae7b03bb96c1a1 (diff) |
Camel case status_code and http_version.
Diffstat (limited to 'website')
-rw-r--r-- | website/node.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/website/node.html b/website/node.html index b2b50c0595d..72a4643ff96 100644 --- a/website/node.html +++ b/website/node.html @@ -263,7 +263,7 @@ class="sh_javascript">request_handler</code> callback. ] </pre> - <dt><code class="sh_javascript">req.http_version</code></dt> + <dt><code class="sh_javascript">req.httpVersion</code></dt> <dd>The HTTP protocol version as a string. Read only. Examples: <code class="sh_javascript">"1.1"</code>, <code class="sh_javascript">"1.0"</code> @@ -296,7 +296,7 @@ req.onBody = function (chunk) { <h4 id="http_server_response"><code class="sh_javascript">node.http.ServerResponse</code></h4> <dl> - <dt><code class="sh_javascript">res.sendHeader(status_code, headers)</code></dt> + <dt><code class="sh_javascript">res.sendHeader(statusCode, headers)</code></dt> <dd> Sends a response header to the request. The status code is a 3-digit HTTP status code, like <code class="sh_javascript">404</code>. The second argument, @@ -341,7 +341,7 @@ connection. (CURRENTLY: The client does not pipeline.) var google = new node.http.Client(80, "google.com"); var req = google.get("/"); req.finish(function (res) { - puts("STATUS: " + res.status_code); + puts("STATUS: " + res.statusCode); puts("HEADERS: " + JSON.stringify(res.headers)); res.setBodyEncoding("utf8"); res.onBody = function (chunk) { @@ -420,10 +420,10 @@ header is completely received but before any part of the response body has been read. <dl> - <dt><code class="sh_javascript">res.status_code</code></dt> + <dt><code class="sh_javascript">res.statusCode</code></dt> <dd>The 3-digit HTTP response status code. (E.G. <code class="sh_javascript">404</code>.)</dd> - <dt><code class="sh_javascript">res.http_version</code></dt> + <dt><code class="sh_javascript">res.httpVersion</code></dt> <dd>The HTTP version of the connected-to server. Probably either <code class="sh_javascript">"1.1"</code> or <code class="sh_javascript">"1.0"</code>. |