ruby-changes:19562
From: drbrain <ko1@a...>
Date: Tue, 17 May 2011 07:38:32 +0900 (JST)
Subject: [ruby-changes:19562] drbrain:r31603 (trunk): * lib/net/http.rb: Improve documentation of proxy configuration
drbrain 2011-05-17 07:15:32 +0900 (Tue, 17 May 2011) New Revision: 31603 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31603 Log: * lib/net/http.rb: Improve documentation of proxy configuration methods. Patch by Alf Mikula. [Ruby 1.9 - Bug #4714] Modified files: trunk/ChangeLog trunk/lib/net/http.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31602) +++ ChangeLog (revision 31603) @@ -1,3 +1,8 @@ +Tue May 17 07:14:58 2011 Eric Hodel <drbrain@s...> + + * lib/net/http.rb: Improve documentation of proxy configuration + methods. Patch by Alf Mikula. [Ruby 1.9 - Bug #4714] + Tue May 17 07:09:01 2011 Eric Hodel <drbrain@s...> * lib/net/pop.rb: Improve documentation. Patch by Vincent Batts. Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 31602) +++ lib/net/http.rb (revision 31603) @@ -883,9 +883,17 @@ @is_proxy_class end + # Address of proxy host. If Net::HTTP does not use a proxy, nil. attr_reader :proxy_address + + # Port number of proxy host. If Net::HTTP does not use a proxy, nil. attr_reader :proxy_port + + # User name for accessing proxy. If Net::HTTP does not use a proxy, nil. attr_reader :proxy_user + + # User password for accessing proxy. If Net::HTTP does not use a proxy, + # nil. attr_reader :proxy_pass end @@ -894,22 +902,22 @@ self.class.proxy_class? end - # Address of proxy host. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_address from Net::HTTP. def proxy_address self.class.proxy_address end - # Port number of proxy host. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_port from Net::HTTP. def proxy_port self.class.proxy_port end - # User name for accessing proxy. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_user from Net::HTTP. def proxy_user self.class.proxy_user end - # User password for accessing proxy. If self does not use a proxy, nil. + # A convenience method for accessing value of proxy_pass from Net::HTTP. def proxy_pass self.class.proxy_pass end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/