Classes and Modules
Public Class methods
new(user, password, hashed: false, **)
[show source]
# File lib/httpx/plugins/auth/digest.rb 14 def initialize(user, password, hashed: false, **) 15 @user = user 16 @password = password 17 @nonce = 0 18 @hashed = hashed 19 end
Public Instance methods
authenticate(request, authenticate)
[show source]
# File lib/httpx/plugins/auth/digest.rb 25 def authenticate(request, authenticate) 26 "Digest #{generate_header(request.verb, request.path, authenticate)}" 27 end
can_authenticate?(authenticate)
[show source]
# File lib/httpx/plugins/auth/digest.rb 21 def can_authenticate?(authenticate) 22 authenticate && /Digest .*/.match?(authenticate) 23 end