Permalink
Browse files

Doc improvements

Fixes #1334.
  • Loading branch information...
1 parent 9a16f1c commit e8bc80cf152973037519f37da4d356a05cc704e1 @koichik koichik committed Jul 16, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 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

0 comments on commit e8bc80c

Please sign in to comment.