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

doc: Update doc for http.IncomingMessage.socket #5502

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -858,10 +858,12 @@ The 3-digit HTTP response status code. E.G. `404`.

### message.socket

The `net.Socket` object associated with the connection.
For HTTP, the `net.Socket` object associated with the connection.

With HTTPS support, use request.connection.verifyPeer() and
request.connection.getPeerCertificate() to obtain the client's
For HTTPS, the `tls.CleartextStream` object associated with the connection.

With HTTPS support, use request.socket.authorized and
request.socket.getPeerCertificate() to obtain the client's
authentication details.


Expand Down