Module: HTTPX::Plugins::FollowRedirects::OptionsMethods
- Defined in:
- lib/httpx/plugins/follow_redirects.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
86 87 88 89 90 91 92 93 94 95 |
# File 'lib/httpx/plugins/follow_redirects.rb', line 86 def self.included(klass) super klass.def_option(:max_redirects) do |num| num = Integer(num) raise Error, ":max_redirects must be positive" unless num.positive? num end klass.def_option(:follow_insecure_redirects) end |