sig/plugins/retries.rbs in httpx-0.17.0 vs sig/plugins/retries.rbs in httpx-0.18.0
- old
+ new
@@ -2,16 +2,19 @@
module Plugins
module Retries
MAX_RETRIES: Integer
IDEMPOTENT_METHODS: Array[verb]
RETRYABLE_ERRORS: Array[singleton(StandardError)]
+ DEFAULT_JITTER: ^(Numeric) -> Numeric
interface _RetryCallback
def call: (response) -> bool?
end
interface _RetriesOptions
def retry_after: () -> Numeric?
+
+ def retry_jitter: () -> ^(Numeric) -> Numeric
def max_retries: () -> Integer?
def retry_change_requests: () -> boolish