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