Sha256: b8f9ef7f872f397391dc18534110d4fb89857f79b7df77acf80bcb75b3b5cfa6

Contents?: true

Size: 1.1 KB

Versions: 14

Compression:

Stored size: 1.1 KB

Contents

module HTTPX
  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_on: () -> _RetryCallback?
        def retry_on=: (_RetryCallback) -> _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 & Plugins::Retries::InstanceMethods
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/plugins/retries.rbs
httpx-0.15.3 sig/plugins/retries.rbs
httpx-0.15.2 sig/plugins/retries.rbs
httpx-0.15.1 sig/plugins/retries.rbs
httpx-0.15.0 sig/plugins/retries.rbs
httpx-0.14.5 sig/plugins/retries.rbs
httpx-0.14.4 sig/plugins/retries.rbs
httpx-0.14.3 sig/plugins/retries.rbs
httpx-0.14.2 sig/plugins/retries.rbs
httpx-0.14.1 sig/plugins/retries.rbs
httpx-0.14.0 sig/plugins/retries.rbs
httpx-0.13.2 sig/plugins/retries.rbs
httpx-0.13.1 sig/plugins/retries.rbs
httpx-0.13.0 sig/plugins/retries.rbs