Skip to content

Commit e8bc80c

Browse files
committed
Doc improvements
Fixes #1334.
1 parent 9a16f1c commit e8bc80c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/http.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ per connection (in the case of keep-alive connections).
3838

3939
### Event: 'connection'
4040

41-
`function (stream) { }`
41+
`function (socket) { }`
4242

43-
When a new TCP stream is established. `stream` is an object of type
44-
`net.Stream`. Usually users will not want to access this event. The
43+
When a new TCP stream is established. `socket` is an object of type
44+
`net.Socket`. Usually users will not want to access this event. The
4545
`stream` can also be accessed at `request.connection`.
4646

4747
### Event: 'close'
@@ -239,7 +239,7 @@ Resumes a paused request.
239239

240240
### request.connection
241241

242-
The `net.Stream` object associated with the connection.
242+
The `net.Socket` object associated with the connection.
243243

244244

245245
With HTTPS support, use request.connection.verifyPeer() and

0 commit comments

Comments
 (0)