local-ch / lhc

🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.
GNU General Public License v3.0
43 stars 1 forks source link

ignore and handle #178

Closed 10xSebastian closed 4 years ago

10xSebastian commented 4 years ago

ignored_errors and error_handler have been for a long time being the only option applied to LHC requests which were not following the general, verb-kind-a wording that we use for all the other options and methods, like .get, cache:, retry:, followlocation``auth etc.

This PR renames the ignored_errors: option to ignore: and the error_handler option to rescue.

I tried to use handle instead of rescue but handle seems to be a ruby internal that we cannot use.

Migration Guide