Ruby 4.0 リファレンスマニュアル

instance method Net::HTTP#max_retries

max_retries -> IntegerRuby 3.0 から[permalink][rdoc][edit]

冪等なリクエストが失敗した場合に再試行する最大回数を返します。

デフォルトは 1 です。

[SEE_ALSO] Net::HTTP#max_retries=