module HTTPX::Plugins::FollowRedirects::InstanceMethods

  1. lib/httpx/plugins/follow_redirects.rb

Methods

Public Instance

  1. max_redirects

Public Instance methods

max_redirects(n)

returns a session with the max_redirects option set to n

[show source]
   # File lib/httpx/plugins/follow_redirects.rb
61 def max_redirects(n)
62   with(max_redirects: n.to_i)
63 end