1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/http.rb: Improve documentation of proxy configuration

methods.  Patch by Alf Mikula.  [Ruby 1.9 - Bug #4714]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-05-16 22:15:32 +00:00
parent a13b23973a
commit 13ae409e1e
2 changed files with 17 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Tue May 17 07:14:58 2011 Eric Hodel <drbrain@segment7.net>
* 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@segment7.net>
* lib/net/pop.rb: Improve documentation. Patch by Vincent Batts.

View file

@ -883,9 +883,17 @@ module Net #:nodoc:
@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 @@ module Net #:nodoc:
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