Skip to content

Commit

Permalink
doc: fix wrong response.end() at request.socket
Browse files Browse the repository at this point in the history
PR-URL: #19507
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
ikasumiwt authored and jasnell committed Apr 16, 2018
1 parent e9a33da commit fbf9e06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,8 @@ added: v0.3.0

Reference to the underlying socket. Usually users will not want to access
this property. In particular, the socket will not emit `'readable'` events
because of how the protocol parser attaches to the socket. After
`response.end()`, the property is nulled. The `socket` may also be accessed
via `request.connection`.
because of how the protocol parser attaches to the socket. The `socket`
may also be accessed via `request.connection`.

Example:

Expand Down

0 comments on commit fbf9e06

Please sign in to comment.