Skip to content

Commit 89a5b90

Browse files
ChALkeRbnoordhuis
authored andcommitted
doc: fix http.IncomingMessage.socket documentation
Remove the reference to net.Socket.verifyPeer(). That was removed in ea540c9 and was missed in the 032f80e. Refer to the net.Socket instance by the .socket property. This avoids unneeded confusion. '.socket' is the variant that is used internally. Add a markdown link to net.Socket.getPeerCertificate(). PR-URL: #1867 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent e0e96ac commit 89a5b90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/http.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -1068,9 +1068,8 @@ The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server
10681068

10691069
The `net.Socket` object associated with the connection.
10701070

1071-
With HTTPS support, use request.connection.verifyPeer() and
1072-
request.connection.getPeerCertificate() to obtain the client's
1073-
authentication details.
1071+
With HTTPS support, use [request.socket.getPeerCertificate()][] to obtain the
1072+
client's authentication details.
10741073

10751074

10761075
['checkContinue']: #http_event_checkcontinue
@@ -1098,5 +1097,6 @@ authentication details.
10981097
[socket.setKeepAlive()]: net.html#net_socket_setkeepalive_enable_initialdelay
10991098
[socket.setNoDelay()]: net.html#net_socket_setnodelay_nodelay
11001099
[socket.setTimeout()]: net.html#net_socket_settimeout_timeout_callback
1100+
[request.socket.getPeerCertificate()]: tls.html#tls_tlssocket_getpeercertificate_detailed
11011101
[stream.setEncoding()]: stream.html#stream_stream_setencoding_encoding
11021102
[url.parse()]: url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost

0 commit comments

Comments
 (0)