Method: HTTParty::ClassMethods#no_follow
- Defined in:
- lib/httparty.rb
#no_follow(value = false) ⇒ Object
Declare whether or not to follow redirects. When true, an RedirectionTooDeep error will raise upon encountering a redirect. You can then gain access to the response object via HTTParty::RedirectionTooDeep#response.
256 257 258 |
# File 'lib/httparty.rb', line 256 def no_follow(value = false) [:no_follow] = value end |