From 691497babe6ea1c59d3556acab743479e7a1efb9 Mon Sep 17 00:00:00 2001 From: koichik Date: Fri, 22 Jul 2011 00:20:47 +0900 Subject: [PATCH] Doc improvements corresponds to #1374 and #1334. --- doc/api/http.markdown | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index d789ce7bef8..5838a0b3dbe 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -42,7 +42,7 @@ per connection (in the case of keep-alive connections). When a new TCP stream is established. `socket` is an object of type `net.Socket`. Usually users will not want to access this event. The - `stream` can also be accessed at `request.connection`. + `socket` can also be accessed at `request.connection`. ### Event: 'close' @@ -294,6 +294,9 @@ Example: response.statusCode = 404; +After response header was sent to the client, this property indicates the +status code which was sent out. + ### response.setHeader(name, value) Sets a single header value for implicit headers. If this header already exists