document updated.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-02-08 03:06:37 +00:00
parent 3977dbc576
commit 84075c004b

View File

@ -362,8 +362,10 @@ module OpenURI
# field for HTTP. # field for HTTP.
# I.e. it is ignored for FTP without HTTP proxy. # I.e. it is ignored for FTP without HTTP proxy.
# #
# The hash may include other option which key is a symbol: # The hash may include other options which key is a symbol:
# #
# [:proxy]
# Synopsis:
# :proxy => "http://proxy.foo.com:8000/" # :proxy => "http://proxy.foo.com:8000/"
# :proxy => URI.parse("http://proxy.foo.com:8000/") # :proxy => URI.parse("http://proxy.foo.com:8000/")
# :proxy => true # :proxy => true
@ -374,11 +376,13 @@ module OpenURI
# boolean or nil. # boolean or nil.
# When String or URI is given, it is treated as proxy URI. # When String or URI is given, it is treated as proxy URI.
# When true is given or the option itself is not specified, # When true is given or the option itself is not specified,
# environment variable `scheme_proxy'(or `SCHEME_PROXY') is examined. # environment variable `scheme_proxy' is examined.
# `scheme' is replaced by `http' or `ftp'. # `scheme' is replaced by `http' or `ftp'.
# When false or nil is given, the environment variables are ignored and # When false or nil is given, the environment variables are ignored and
# connection will be made to a server directly. # connection will be made to a server directly.
# #
# [:content_length_proc]
# Synopsis:
# :content_length_proc => lambda {|content_length| ... } # :content_length_proc => lambda {|content_length| ... }
# #
# If :content_length_proc option is specified, the option value procedure # If :content_length_proc option is specified, the option value procedure
@ -392,6 +396,8 @@ module OpenURI
# nil. # nil.
# It is happen when HTTP response has no Content-Length header. # It is happen when HTTP response has no Content-Length header.
# #
# [:progress_proc]
# Synopsis:
# :progress_proc => lambda {|size| ...} # :progress_proc => lambda {|size| ...}
# #
# If :progress_proc option is specified, the proc is called with one # If :progress_proc option is specified, the proc is called with one