Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Doc improvements
Browse files Browse the repository at this point in the history
Fixes #1334.
  • Loading branch information
koichik committed Jul 16, 2011
1 parent 9a16f1c commit e8bc80c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e8bc80c

Please sign in to comment.