Module: HTTPX::Plugins::FollowRedirects::InstanceMethods
- Defined in:
- lib/httpx/plugins/follow_redirects.rb
Instance Method Summary collapse
-
#max_redirects(n) ⇒ Object
returns a session with the max_redirects option set to
n
.
Instance Method Details
#max_redirects(n) ⇒ Object
returns a session with the max_redirects option set to n
61 62 63 |
# File 'lib/httpx/plugins/follow_redirects.rb', line 61 def max_redirects(n) with(max_redirects: n.to_i) end |