module HTTPX::Plugins::OAuth::OAuthRetries::InstanceMethods

  1. lib/httpx/plugins/oauth.rb

Methods

Public Instance

  1. prepare_to_retry

Public Instance methods

prepare_to_retry(_request, response)
[show source]
    # File lib/httpx/plugins/oauth.rb
279 def prepare_to_retry(_request, response)
280   unless @oauth_session && @options.generate_auth_value_on_retry && @options.generate_auth_value_on_retry.call(response)
281     return super
282   end
283 
284   @oauth_session.reset!
285 
286   super
287 end