vendor/bundle/ruby/2.1.0/gems/httpauth-0.2.1/lib/httpauth/digest.rb
def update_from_credentials!(options)
        # TODO: update @h after nonce invalidation
        [:digest, :username, :realm, :password].each do |k|
          @h[k] = options[k] if options.include? k
        end
        @h[:response_body] = options[:response_body]
        @h[:nextnonce] = Utils.create_nonce @h[:salt]
        @h[:rspauth] = Utils.calculate_digest(@h, nil, :response)
      end
# Updates @h from options, generally called after an instance was created with <tt>from_credentials</tt>.
Updates @h from options, generally called after an instance was created with from_credentials.
Updates @h from options generally called after an instance was created with from_credentials .
def update_from_credentials!(options)
        [:digest, :username, :realm, :password].each do |k|
          @h[k] = options[k] if options.include? k
        end
        @h[:response_body] = options[:response_body]
        @h[:nextnonce] = Utils.create_nonce @h[:salt]
        @h[:rspauth] = Utils.calculate_digest(@h, nil, :response)
      end
def update_from_credentials! ( options ) [ :digest , :username , :realm , :password ] . each do | k | @h [ k ] = options [ k ] if options . include? k end @h [ :response_body ] = options [ :response_body ] @h [ :nextnonce ] = Utils . create_nonce @h [ :salt ] @h [ :rspauth ] = Utils . calculate_digest ( @h , nil , :response ) end
Updates @h from options, generally called after an instance was created with <tt>from_credentials</tt>.
Updates @h from options generally called after an instance was created with <tt > from_credentials< / tt > .
# TODO: update @h after nonce invalidation
options