Module: HTTPX::Plugins::Auth::AuthRetries::InstanceMethods

Defined in:
lib/httpx/plugins/auth.rb,
sig/plugins/auth.rbs

Instance Method Summary collapse

Instance Method Details

#auth_error?(response, options) ⇒ Boolean

Parameters:

  • response (response)
  • options (Options)

Returns:

  • (Boolean)


217
218
219
# File 'lib/httpx/plugins/auth.rb', line 217

def auth_error?(response, options)
  response.is_a?(Response) && response.status == 401 && dynamic_auth_token?(options.auth_header_value)
end