From ee66ea3610cde54f934a50160a28c939f3fec4c7 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Thu, 23 Feb 2023 20:12:00 +0000 Subject: [PATCH 01/12] Enhanced RDoc for Net::HTTP --- lib/net/http.rb | 87 ++++++++++++++++++++++++++---------------- lib/net/http/status.rb | 2 +- 2 files changed, 55 insertions(+), 34 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 3e931328..2a261436 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -368,7 +368,7 @@ class HTTPHeaderSyntaxError < StandardError; end # http.proxy_user # => "pname" # http.proxy_pass # => "ppass" # - # === Proxy Using ENV['http_proxy'] + # === Proxy Using 'ENV['http_proxy']' # # When environment variable 'http_proxy' # is set to a \URI string, @@ -826,7 +826,7 @@ def HTTP.new(address, port = nil, p_addr = :ENV, p_port = nil, p_user = nil, p_p # Creates a new \Net::HTTP object for the specified server address, # without opening the TCP connection or initializing the \HTTP session. # The +address+ should be a DNS hostname or IP address. - def initialize(address, port = nil) + def initialize(address, port = nil) # :nodoc: @address = address @port = (port || HTTP.default_port) @ipaddr = nil @@ -926,21 +926,22 @@ def set_debug_output(output) @debug_output = output end - # The DNS host name or IP address to connect to. + # Returns the string host name or host IPA given as argument +address+ in ::new. attr_reader :address - # The port number to connect to. + # Returns the integer port number given as argument +port+ in ::new. attr_reader :port - # The local host used to establish the connection. + # Sets or returns the string local host used to establish the connection; + # initially +nil+. attr_accessor :local_host - # The local port used to establish the connection. + # Sets or returns the integer local port used to establish the connection; + # initially +nil+. attr_accessor :local_port - # The encoding to use for the response body. If Encoding, uses the - # specified encoding. If other true value, tries to detect the response - # body encoding. + # Returns the encoding to use for the response body; + # see #response_body_encoding=. attr_reader :response_body_encoding # Sets the encoding to be used for the response body; @@ -966,10 +967,25 @@ def response_body_encoding=(value) @response_body_encoding = value end + # Sets whether to determine the proxy from environment variable + # 'ENV['http_proxy']'; + # see {Proxy Using ENV['http_proxy']}[rdoc-ref:Net::HTTP@Proxy+Using+-27ENV-5B-27http_proxy-27-5D-27]. attr_writer :proxy_from_env + + # Sets the proxy address; + # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. attr_writer :proxy_address + + # Sets the proxy port; + # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. attr_writer :proxy_port + + # Sets the proxy user; + # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. attr_writer :proxy_user + + # Sets the proxy password; + # see {Proxy Server}[rdoc-ref:Net::HTTP@Proxy+Server]. attr_writer :proxy_pass # Returns the IP address for the connection. @@ -1008,23 +1024,21 @@ def ipaddr=(addr) @ipaddr = addr end - # Number of seconds to wait for the connection to open. Any number - # may be used, including Floats for fractional seconds. If the \HTTP - # object cannot open a connection in this many seconds, it raises a - # \Net::OpenTimeout exception. The default value is 60 seconds. + # Sets or returns the numeric (\Integer or \Float) number of seconds + # to wait for a connection to open; + # initially 60. + # If the connection is not made in the given interval, + # an exception is raised. attr_accessor :open_timeout - # Number of seconds to wait for one block to be read (via one read(2) - # call). Any number may be used, including Floats for fractional - # seconds. If the \HTTP object cannot read data in this many seconds, - # it raises a Net::ReadTimeout exception. The default value is 60 seconds. + # Returns the numeric (\Integer or \Float) number of seconds + # to wait for one block to be read (via one read(2) call); + # see #read_timeout=. attr_reader :read_timeout - # Number of seconds to wait for one block to be written (via one write(2) - # call). Any number may be used, including Floats for fractional - # seconds. If the \HTTP object cannot write data in this many seconds, - # it raises a \Net::WriteTimeout exception. The default value is 60 seconds. - # \Net::WriteTimeout is not raised on Windows. + # Returns the numeric (\Integer or \Float) number of seconds + # to wait for one block to be written (via one write(2) call); + # see #write_timeout=. attr_reader :write_timeout # Sets the maximum number of times to retry an idempotent request in case of @@ -1047,6 +1061,8 @@ def max_retries=(retries) @max_retries = retries end + # Returns the maximum number of times to retry an idempotent request; + # see #max_retries=. attr_reader :max_retries # Sets the read timeout, in seconds, for +self+ to integer +sec+; @@ -1089,9 +1105,8 @@ def write_timeout=(sec) @write_timeout = sec end - # Returns the continue timeout value. - # See Net::HTTP.continue_timeout=. - # + # Returns the continue timeout value; + # see continue_timeout=. attr_reader :continue_timeout # Sets the continue timeout value, @@ -1103,14 +1118,18 @@ def continue_timeout=(sec) @continue_timeout = sec end - # Seconds to reuse the connection of the previous request. - # If the idle time is less than this Keep-Alive Timeout, - # \Net::HTTP reuses the TCP/IP socket used by the previous communication. - # The default value is 2 seconds. + # Sets or returns the numeric (\Integer or \Float) number of seconds + # to keep the connection open after a request is sent; + # initially 2. + # If a new request is made during the given interval, + # the still-open connection is used; + # otherwise the connection will have been closed + # and a new connection is opened. attr_accessor :keep_alive_timeout - # Whether to ignore EOF when reading response bodies with defined - # Content-Length headers. For backwards compatibility, the default is true. + # Sets or returns whether to ignore end-of-file when reading a response body + # with Content-Length headers; + # initially +true+ attr_accessor :ignore_eof # Returns +true+ if the \HTTP session has been started: @@ -1133,6 +1152,8 @@ def started? alias active? started? #:nodoc: obsolete + # Sets or returns whether to close the connection when the response is empty; + # initially +false+. attr_accessor :close_on_empty_response # Returns +true+ if +self+ uses SSL, +false+ otherwise. @@ -1171,7 +1192,7 @@ def use_ssl=(flag) :@verify_depth, :@verify_mode, :@verify_hostname, - ] + ] # :nodoc: SSL_ATTRIBUTES = [ :ca_file, :ca_path, @@ -1188,7 +1209,7 @@ def use_ssl=(flag) :verify_depth, :verify_mode, :verify_hostname, - ] + ] # :nodoc: # Sets path of a CA certification file in PEM format. # diff --git a/lib/net/http/status.rb b/lib/net/http/status.rb index 8db3f7d9..f39fb642 100644 --- a/lib/net/http/status.rb +++ b/lib/net/http/status.rb @@ -80,4 +80,4 @@ 508 => 'Loop Detected', 510 => 'Not Extended', 511 => 'Network Authentication Required', -} +} # :nodoc: From 7ab8c1c784e333721d085a95ef2a2ed3bd296cd9 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 08:54:34 -0600 Subject: [PATCH 02/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 2a261436..0d13ddd2 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -926,7 +926,7 @@ def set_debug_output(output) @debug_output = output end - # Returns the string host name or host IPA given as argument +address+ in ::new. + # Returns the string host name or host IP given as argument +address+ in ::new. attr_reader :address # Returns the integer port number given as argument +port+ in ::new. From de3a492346a85021fef49fe8150d031050a54345 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 08:55:11 -0600 Subject: [PATCH 03/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 0d13ddd2..af814e9a 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1129,7 +1129,7 @@ def continue_timeout=(sec) # Sets or returns whether to ignore end-of-file when reading a response body # with Content-Length headers; - # initially +true+ + # initially +true+. attr_accessor :ignore_eof # Returns +true+ if the \HTTP session has been started: From bc2f082d0f7124926525959fd6aca6bd7a3066e7 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Fri, 24 Feb 2023 19:26:53 +0000 Subject: [PATCH 04/12] Enhanced RDoc for Net::HTTP --- lib/net/http.rb | 77 +++++++++++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 31 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index af814e9a..c455de28 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1211,63 +1211,75 @@ def use_ssl=(flag) :verify_hostname, ] # :nodoc: - # Sets path of a CA certification file in PEM format. - # - # The file can contain several CA certificates. + # Sets or returns the path to a CA certification file in PEM format. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :ca_file - # Sets path of a CA certification directory containing certifications in - # PEM format. + # Sets or returns the path of to CA directory + # containing certification files in PEM format. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :ca_path - # Sets an OpenSSL::X509::Certificate object as client certificate. - # (This method is appeared in Michal Rokos's OpenSSL extension). + # Sets or returns the OpenSSL::X509::Certificate object + # to be used for client certification. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :cert - # Sets the X509::Store to verify peer certificate. + # Sets or returns the X509::Store to be used for verifying peer certificate. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :cert_store - # Sets the available ciphers. See OpenSSL::SSL::SSLContext#ciphers= + # Sets or returns the available SSL ciphers. + # See {OpenSSL::SSL::SSLContext#ciphers=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D]. attr_accessor :ciphers - # Sets the extra X509 certificates to be added to the certificate chain. - # See OpenSSL::SSL::SSLContext#extra_chain_cert= - attr_accessor :extra_chain_cert + # Sets or returns the extra X509 certificates to be added to the certificate chain. + # See {OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate]. + attr_accessor :extra_chain_cert - # Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. - # (This method is appeared in Michal Rokos's OpenSSL extension.) + # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :key - # Sets the SSL timeout seconds. + # Sets or returns the SSL timeout seconds. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :ssl_timeout - # Sets the SSL version. See OpenSSL::SSL::SSLContext#ssl_version= + # Sets or returns the SSL version. + # See {OpenSSL::SSL::SSLContext#ssl_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D]. attr_accessor :ssl_version - # Sets the minimum SSL version. See OpenSSL::SSL::SSLContext#min_version= + # Sets or returns the minimum SSL version. + # See {OpenSSL::SSL::SSLContext#min_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D]. attr_accessor :min_version - # Sets the maximum SSL version. See OpenSSL::SSL::SSLContext#max_version= + # Sets or returns the maximum SSL version. + # See {OpenSSL::SSL::SSLContext#max_version=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D]. attr_accessor :max_version - # Sets the verify callback for the server certification verification. + # Sets or returns the callback for the server certification verification. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :verify_callback - # Sets the maximum depth for the certificate chain verification. + # Sets or returns the maximum depth for the certificate chain verification. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :verify_depth - # Sets the flags for server the certification verification at beginning of - # SSL/TLS session. - # + # Sets or returns the flags for server the certification verification + # at the beginning of the SSL/TLS session. # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :verify_mode - # Sets to check the server certificate is valid for the hostname. - # See OpenSSL::SSL::SSLContext#verify_hostname= + # Sets or returns whether to verify that the server certificate is valid + # for the hostname. + # See {OpenSSL::SSL::SSLContext#verify_hostname=}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#attribute-i-verify_mode]. attr_accessor :verify_hostname - # The X509 certificate chain (an array of strings) for the session's socket peer, + # Returns the X509 certificate chain (an array of strings) + # for the session's socket peer, # or +nil+ if none. + # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html]. def peer_cert if not use_ssl? or not @socket return nil @@ -1497,17 +1509,20 @@ def proxy_class? defined?(@is_proxy_class) ? @is_proxy_class : false end - # Address of proxy host. If \Net::HTTP does not use a proxy, nil. + # Returns the address of the proxy host, or +nil+ if none; + # see -Net::HTTP@Proxy+Server. attr_reader :proxy_address - # Port number of proxy host. If \Net::HTTP does not use a proxy, nil. + # Returns the port number of the proxy host, or +nil+ if none;. + # see -Net::HTTP@Proxy+Server. attr_reader :proxy_port - # User name for accessing proxy. If \Net::HTTP does not use a proxy, nil. + # Returns the user name for accessing the proxy, or +nil+ if none. + # see -Net::HTTP@Proxy+Server. attr_reader :proxy_user - # User password for accessing proxy. \If Net::HTTP does not use a proxy, - # nil. + # Returns the password for accessing the proxy, or +nil+ if none. + # see -Net::HTTP@Proxy+Server. attr_reader :proxy_pass end From 189e8d45fd499d81dae50bf6b83c08ce2e4bde41 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 14:32:09 -0600 Subject: [PATCH 05/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index c455de28..a5cbe296 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1221,7 +1221,7 @@ def use_ssl=(flag) attr_accessor :ca_path # Sets or returns the OpenSSL::X509::Certificate object - # to be used for client certification. + # to be used for client certification. # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :cert From 54661a01574e3f8a7c18609067e4a3fcf98c690c Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 14:32:32 -0600 Subject: [PATCH 06/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index a5cbe296..73670040 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1235,7 +1235,7 @@ def use_ssl=(flag) # Sets or returns the extra X509 certificates to be added to the certificate chain. # See {OpenSSL::SSL::SSLContext#add_certificate}[https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-add_certificate]. - attr_accessor :extra_chain_cert + attr_accessor :extra_chain_cert # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] From 799d5c71ebea6065d57cad635b286e43c2e4e926 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 14:32:51 -0600 Subject: [PATCH 07/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 73670040..2b10af07 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1510,7 +1510,7 @@ def proxy_class? end # Returns the address of the proxy host, or +nil+ if none; - # see -Net::HTTP@Proxy+Server. + # see Net::HTTP@Proxy+Server. attr_reader :proxy_address # Returns the port number of the proxy host, or +nil+ if none;. From da5b1d8aba01197b9201bc12bfdac6613ec59c72 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 14:33:11 -0600 Subject: [PATCH 08/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 2b10af07..22d0f0f9 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1513,7 +1513,7 @@ def proxy_class? # see Net::HTTP@Proxy+Server. attr_reader :proxy_address - # Returns the port number of the proxy host, or +nil+ if none;. + # Returns the port number of the proxy host, or +nil+ if none; # see -Net::HTTP@Proxy+Server. attr_reader :proxy_port From d7314c5769b1cdc3b58b75488938b3a71c8a068d Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 14:33:26 -0600 Subject: [PATCH 09/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 22d0f0f9..8b412b86 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1517,7 +1517,7 @@ def proxy_class? # see -Net::HTTP@Proxy+Server. attr_reader :proxy_port - # Returns the user name for accessing the proxy, or +nil+ if none. + # Returns the user name for accessing the proxy, or +nil+ if none; # see -Net::HTTP@Proxy+Server. attr_reader :proxy_user From b3504fdd42900857acfead8128b4a973420eb443 Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Fri, 24 Feb 2023 14:33:40 -0600 Subject: [PATCH 10/12] Update lib/net/http.rb Co-authored-by: Peter Zhu --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index 8b412b86..c1d9d8a0 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1521,7 +1521,7 @@ def proxy_class? # see -Net::HTTP@Proxy+Server. attr_reader :proxy_user - # Returns the password for accessing the proxy, or +nil+ if none. + # Returns the password for accessing the proxy, or +nil+ if none; # see -Net::HTTP@Proxy+Server. attr_reader :proxy_pass end From 4c6fb2ef28b0c00fc6d2a75182d9c575960b4794 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Fri, 24 Feb 2023 22:22:55 +0000 Subject: [PATCH 11/12] Enhanced RDoc for Net::HTTP --- lib/net/http.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index c1d9d8a0..a684eefe 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1,3 +1,4 @@ + # frozen_string_literal: false # # = net/http.rb @@ -1212,21 +1213,17 @@ def use_ssl=(flag) ] # :nodoc: # Sets or returns the path to a CA certification file in PEM format. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :ca_file # Sets or returns the path of to CA directory # containing certification files in PEM format. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :ca_path # Sets or returns the OpenSSL::X509::Certificate object # to be used for client certification. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :cert # Sets or returns the X509::Store to be used for verifying peer certificate. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :cert_store # Sets or returns the available SSL ciphers. @@ -1238,11 +1235,9 @@ def use_ssl=(flag) attr_accessor :extra_chain_cert # Sets or returns the OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :key # Sets or returns the SSL timeout seconds. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :ssl_timeout # Sets or returns the SSL version. @@ -1258,17 +1253,14 @@ def use_ssl=(flag) attr_accessor :max_version # Sets or returns the callback for the server certification verification. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :verify_callback # Sets or returns the maximum depth for the certificate chain verification. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :verify_depth # Sets or returns the flags for server the certification verification # at the beginning of the SSL/TLS session. # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html] attr_accessor :verify_mode # Sets or returns whether to verify that the server certificate is valid @@ -1279,7 +1271,6 @@ def use_ssl=(flag) # Returns the X509 certificate chain (an array of strings) # for the session's socket peer, # or +nil+ if none. - # See {OpenSSL}[https://docs.ruby-lang.org/en/master/OpenSSL.html]. def peer_cert if not use_ssl? or not @socket return nil From cb872c92c53c19295ae7065f7977d42ac19aac2d Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sat, 25 Feb 2023 18:58:06 +0000 Subject: [PATCH 12/12] Enhanced RDoc for Net::HTTP --- lib/net/http.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/net/http.rb b/lib/net/http.rb index a684eefe..bfaae9ac 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1,4 +1,3 @@ - # frozen_string_literal: false # # = net/http.rb @@ -1505,15 +1504,15 @@ def proxy_class? attr_reader :proxy_address # Returns the port number of the proxy host, or +nil+ if none; - # see -Net::HTTP@Proxy+Server. + # see Net::HTTP@Proxy+Server. attr_reader :proxy_port # Returns the user name for accessing the proxy, or +nil+ if none; - # see -Net::HTTP@Proxy+Server. + # see Net::HTTP@Proxy+Server. attr_reader :proxy_user # Returns the password for accessing the proxy, or +nil+ if none; - # see -Net::HTTP@Proxy+Server. + # see Net::HTTP@Proxy+Server. attr_reader :proxy_pass end