twingly / twingly-http

Robust HTTP client
https://rubygems.org/gems/twingly-http
MIT License
0 stars 1 forks source link

Be able to configure number of redirects to follow #6

Closed dentarg closed 5 years ago

dentarg commented 5 years ago

Also wrap the error that can be raised from Faraday.

Require faraday_middleware/response/follow_redirects directly, because the error class FaradayMiddleware::RedirectLimitReached isn't loaded if we haven't called use FaradayMiddleware::FollowRedirects.

The 👮🏻‍♂️ made me create initialize_defaults.