From e8bc80cf152973037519f37da4d356a05cc704e1 Mon Sep 17 00:00:00 2001 From: koichik Date: Sat, 16 Jul 2011 09:45:43 +0900 Subject: [PATCH] Doc improvements Fixes #1334. --- doc/api/http.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 7fe5240..d789ce7 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -38,10 +38,10 @@ per connection (in the case of keep-alive connections). ### Event: 'connection' -`function (stream) { }` +`function (socket) { }` - When a new TCP stream is established. `stream` is an object of type - `net.Stream`. Usually users will not want to access this event. The + 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`. ### Event: 'close' @@ -239,7 +239,7 @@ Resumes a paused request. ### request.connection -The `net.Stream` object associated with the connection. +The `net.Socket` object associated with the connection. With HTTPS support, use request.connection.verifyPeer() and -- 2.7.4