sig/plugins/retries.rbs in httpx-0.15.4 vs sig/plugins/retries.rbs in httpx-0.16.0
- old
+ new
@@ -2,29 +2,25 @@
module Plugins
module Retries
MAX_RETRIES: Integer
IDEMPOTENT_METHODS: Array[verb]
RETRYABLE_ERRORS: Array[singleton(StandardError)]
-
+
interface _RetryCallback
def call: (response) -> bool?
end
interface _RetriesOptions
def retry_after: () -> Numeric?
- def retry_after=: (Numeric) -> Numeric
def max_retries: () -> Integer?
- def max_retries=: (int) -> Integer
- def retry_change_requests: () -> bool?
- def retry_change_requests=: (bool) -> bool
+ def retry_change_requests: () -> boolish
def retry_on: () -> _RetryCallback?
- def retry_on=: (_RetryCallback) -> _RetryCallback
end
-
+
def self.extra_options: (Options) -> (Options & _RetriesOptions)
module InstanceMethods
def max_retries: (int) -> instance
@@ -37,8 +33,8 @@
module RequestMethods
def retries: () -> Integer
end
end
- type sessionRetries = Session & Plugins::Retries::InstanceMethods
+ type sessionRetries = Session & Retries::InstanceMethods
end
end