Sha256: 9ad325099039518a74efb8bba2bd77c83d3f33b343715f01bd6321303becf7df

Contents?: true

Size: 1012 Bytes

Versions: 31

Compression:

Stored size: 1012 Bytes

Contents

module HTTPX
  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

        def retry_on: () -> _RetryCallback?
      end

      def self.extra_options: (Options) -> (Options & _RetriesOptions)

      module InstanceMethods
        def max_retries: (int) -> instance

        private

        def __repeatable_request?: (Request, Options) -> boolish
        def __retryable_error?: (_Exception) -> bool
      end

      module RequestMethods
      	def retries: () -> Integer
      end
    end

    type sessionRetries = Session & Retries::InstanceMethods
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
httpx-0.22.5 sig/plugins/retries.rbs
httpx-0.22.4 sig/plugins/retries.rbs
httpx-0.22.3 sig/plugins/retries.rbs
httpx-0.22.2 sig/plugins/retries.rbs
httpx-0.22.1 sig/plugins/retries.rbs
httpx-0.22.0 sig/plugins/retries.rbs
httpx-0.21.1 sig/plugins/retries.rbs
httpx-0.21.0 sig/plugins/retries.rbs
httpx-0.20.5 sig/plugins/retries.rbs
httpx-0.20.4 sig/plugins/retries.rbs
httpx-0.20.3 sig/plugins/retries.rbs
httpx-0.20.2 sig/plugins/retries.rbs
httpx-0.20.1 sig/plugins/retries.rbs
httpx-0.20.0 sig/plugins/retries.rbs
httpx-0.19.8 sig/plugins/retries.rbs
httpx-0.19.7 sig/plugins/retries.rbs
httpx-0.19.6 sig/plugins/retries.rbs
httpx-0.19.5 sig/plugins/retries.rbs
httpx-0.19.4 sig/plugins/retries.rbs
httpx-0.19.3 sig/plugins/retries.rbs