From 5cf94428cdb11084b3414bd8b981a6c27ca4fc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 1 Jun 2015 23:54:27 +0300 Subject: [PATCH] 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(). --- doc/api/http.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 91f5a0a72dc339..d0216e0f0eff1a 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -1068,8 +1068,7 @@ The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server The `net.Socket` object associated with the connection. -With HTTPS support, use request.connection.verifyPeer() and -request.connection.getPeerCertificate() to obtain the client's +With HTTPS support, use [request.socket.getPeerCertificate()][] to obtain the client's authentication details. @@ -1098,5 +1097,6 @@ authentication details. [socket.setKeepAlive()]: net.html#net_socket_setkeepalive_enable_initialdelay [socket.setNoDelay()]: net.html#net_socket_setnodelay_nodelay [socket.setTimeout()]: net.html#net_socket_settimeout_timeout_callback +[request.socket.getPeerCertificate()]: tls.html#tlssocketgetpeercertificate-detailed- [stream.setEncoding()]: stream.html#stream_stream_setencoding_encoding [url.parse()]: url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost