module HTTPX::Plugins::OAuth::OAuthRetries

  1. lib/httpx/plugins/oauth.rb

Methods

Public Class

  1. extra_options
  2. response_oauth_error?

Public Class methods

extra_options(options)
[show source]
    # File lib/httpx/plugins/oauth.rb
266 def extra_options(options)
267   options.merge(
268     retry_on: method(:response_oauth_error?),
269     generate_auth_value_on_retry: method(:response_oauth_error?)
270   )
271 end
response_oauth_error?(res)
[show source]
    # File lib/httpx/plugins/oauth.rb
273 def response_oauth_error?(res)
274   res.is_a?(Response) && res.status == 401
275 end