class Cossack::RedirectionMiddleware
- Cossack::RedirectionMiddleware
- Cossack::Middleware
- Reference
- Object
Overview
Follows 3xx redirects.
Cossack::Client.new do |client|
# follow up to 10 redirects (by default 5)
client.use Cossack::RedirectionMiddleware, limit: 10
end