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)


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

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