Class: Luchadeer::Middleware::FollowRedirects

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/luchadeer/middleware/follow_redirects.rb

Constant Summary collapse

FOLLOW_LIMIT =
3

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



10
11
12
# File 'lib/luchadeer/middleware/follow_redirects.rb', line 10

def call(env)
  follow_redirect(env, FOLLOW_LIMIT)
end