[ruby/open-uri] document max_redirects option
https://github.com/ruby/open-uri/commit/4a247e5ca1
This commit is contained in:
parent
e62a0126cd
commit
72732af47e
@ -746,6 +746,12 @@ module OpenURI
|
|||||||
# Using +true+ also means that redirections between http and ftp are
|
# Using +true+ also means that redirections between http and ftp are
|
||||||
# permitted.
|
# permitted.
|
||||||
#
|
#
|
||||||
|
# [:max_redirects]
|
||||||
|
# Synopsis:
|
||||||
|
# :max_redirects=>int
|
||||||
|
#
|
||||||
|
# Number of HTTP redirects allowed before OpenURI::TooManyRedirects is raised.
|
||||||
|
# The default is 64.
|
||||||
def open(*rest, &block)
|
def open(*rest, &block)
|
||||||
OpenURI.open_uri(self, *rest, &block)
|
OpenURI.open_uri(self, *rest, &block)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user