From e8ac88215b2f953f37318cd5f51e916b4d1cfa32 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(). PR-URL: https://github.com/nodejs/io.js/pull/1867 Reviewed-By: Ben Noordhuis --- doc/api/http.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/http.markdown b/doc/api/http.markdown index a2d45e132..f0051d0de 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -1068,9 +1068,8 @@ 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 -authentication details. +With HTTPS support, use [request.socket.getPeerCertificate()][] to obtain the +client's authentication details. ['checkContinue']: #http_event_checkcontinue @@ -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#tls_tlssocket_getpeercertificate_detailed [stream.setEncoding()]: stream.html#stream_stream_setencoding_encoding [url.parse()]: url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost