Module: HTTPX::Plugins::FollowRedirects::RequestMethods
- Defined in:
- lib/httpx/plugins/follow_redirects.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
87 88 89 |
# File 'lib/httpx/plugins/follow_redirects.rb', line 87 def self.included(klass) klass.__send__(:attr_writer, :redirect_request) end |
Instance Method Details
#max_redirects ⇒ Object
95 96 97 |
# File 'lib/httpx/plugins/follow_redirects.rb', line 95 def max_redirects @options.max_redirects || MAX_REDIRECTS end |
#redirect_request ⇒ Object
91 92 93 |
# File 'lib/httpx/plugins/follow_redirects.rb', line 91 def redirect_request @redirect_request || self end |