@@ -1211,62 +1211,64 @@ def use_ssl=(flag)
12111211 :verify_hostname ,
12121212 ] # :nodoc:
12131213
1214- # Sets path of a CA certification file in PEM format.
1215- #
1216- # The file can contain several CA certificates.
1214+ # Sets or returns the path to a CA certification file in PEM format.
12171215 attr_accessor :ca_file
12181216
1219- # Sets path of a CA certification directory containing certifications in
1220- # PEM format.
1217+ # Sets or returns the path of to CA directory
1218+ # containing certification files in PEM format.
12211219 attr_accessor :ca_path
12221220
1223- # Sets an OpenSSL::X509::Certificate object as client certificate.
1224- # (This method is appeared in Michal Rokos's OpenSSL extension) .
1221+ # Sets or returns the OpenSSL::X509::Certificate object
1222+ # to be used for client certification .
12251223 attr_accessor :cert
12261224
1227- # Sets the X509::Store to verify peer certificate.
1225+ # Sets or returns the X509::Store to be used for verifying peer certificate.
12281226 attr_accessor :cert_store
12291227
1230- # Sets the available ciphers. See OpenSSL::SSL::SSLContext#ciphers=
1228+ # Sets or returns the available SSL ciphers.
1229+ # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D].
12311230 attr_accessor :ciphers
12321231
1233- # Sets the extra X509 certificates to be added to the certificate chain.
1234- # See OpenSSL::SSL::SSLContext#extra_chain_cert=
1232+ # Sets or returns the extra X509 certificates to be added to the certificate chain.
1233+ # See { OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate].
12351234 attr_accessor :extra_chain_cert
12361235
1237- # Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
1238- # (This method is appeared in Michal Rokos's OpenSSL extension.)
1236+ # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
12391237 attr_accessor :key
12401238
1241- # Sets the SSL timeout seconds.
1239+ # Sets or returns the SSL timeout seconds.
12421240 attr_accessor :ssl_timeout
12431241
1244- # Sets the SSL version. See OpenSSL::SSL::SSLContext#ssl_version=
1242+ # Sets or returns the SSL version.
1243+ # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D].
12451244 attr_accessor :ssl_version
12461245
1247- # Sets the minimum SSL version. See OpenSSL::SSL::SSLContext#min_version=
1246+ # Sets or returns the minimum SSL version.
1247+ # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D].
12481248 attr_accessor :min_version
12491249
1250- # Sets the maximum SSL version. See OpenSSL::SSL::SSLContext#max_version=
1250+ # Sets or returns the maximum SSL version.
1251+ # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D].
12511252 attr_accessor :max_version
12521253
1253- # Sets the verify callback for the server certification verification.
1254+ # Sets or returns the callback for the server certification verification.
12541255 attr_accessor :verify_callback
12551256
1256- # Sets the maximum depth for the certificate chain verification.
1257+ # Sets or returns the maximum depth for the certificate chain verification.
12571258 attr_accessor :verify_depth
12581259
1259- # Sets the flags for server the certification verification at beginning of
1260- # SSL/TLS session.
1261- #
1260+ # Sets or returns the flags for server the certification verification
1261+ # at the beginning of the SSL/TLS session.
12621262 # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable.
12631263 attr_accessor :verify_mode
12641264
1265- # Sets to check the server certificate is valid for the hostname.
1266- # See OpenSSL::SSL::SSLContext#verify_hostname=
1265+ # Sets or returns whether to verify that the server certificate is valid
1266+ # for the hostname.
1267+ # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode].
12671268 attr_accessor :verify_hostname
12681269
1269- # The X509 certificate chain (an array of strings) for the session's socket peer,
1270+ # Returns the X509 certificate chain (an array of strings)
1271+ # for the session's socket peer,
12701272 # or +nil+ if none.
12711273 def peer_cert
12721274 if not use_ssl? or not @socket
@@ -1497,17 +1499,20 @@ def proxy_class?
14971499 defined? ( @is_proxy_class ) ? @is_proxy_class : false
14981500 end
14991501
1500- # Address of proxy host. If \Net::HTTP does not use a proxy, nil.
1502+ # Returns the address of the proxy host, or +nil+ if none;
1503+ # see Net::HTTP@Proxy+Server.
15011504 attr_reader :proxy_address
15021505
1503- # Port number of proxy host. If \Net::HTTP does not use a proxy, nil.
1506+ # Returns the port number of the proxy host, or +nil+ if none;
1507+ # see Net::HTTP@Proxy+Server.
15041508 attr_reader :proxy_port
15051509
1506- # User name for accessing proxy. If \Net::HTTP does not use a proxy, nil.
1510+ # Returns the user name for accessing the proxy, or +nil+ if none;
1511+ # see Net::HTTP@Proxy+Server.
15071512 attr_reader :proxy_user
15081513
1509- # User password for accessing proxy. \If Net::HTTP does not use a proxy,
1510- # nil .
1514+ # Returns the password for accessing the proxy, or +nil+ if none;
1515+ # see Net::HTTP@Proxy+Server .
15111516 attr_reader :proxy_pass
15121517 end
15131518
0 commit comments