Class: Luchadeer::Middleware::FollowRedirects
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- Luchadeer::Middleware::FollowRedirects
- 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 |