Sha256: bec55792afa92d6e10a0f0565092733e56d7cdfd49a89c84ce0bc26e0b0d462e

Contents?: true

Size: 913 Bytes

Versions: 3

Compression:

Stored size: 913 Bytes

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

3 entries across 3 versions & 1 rubygems

Version Path
httpx-0.17.0 sig/plugins/retries.rbs
httpx-0.16.1 sig/plugins/retries.rbs
httpx-0.16.0 sig/plugins/retries.rbs