Class: Rack::Auth::Digest::Request
Instance Method Summary
collapse
#initialize, #parts, #provided?, #scheme
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/rack/auth/digest/request.rb', line 30
def method_missing(sym)
if params.has_key? key = sym.to_s
return params[key]
end
super
end
|
Instance Method Details
#correct_uri? ⇒ Boolean
18
19
20
|
# File 'lib/rack/auth/digest/request.rb', line 18
def correct_uri?
@env['PATH_INFO'] == uri
end
|
#digest? ⇒ Boolean
14
15
16
|
# File 'lib/rack/auth/digest/request.rb', line 14
def digest?
:digest == scheme
end
|
#method ⇒ Object
10
11
12
|
# File 'lib/rack/auth/digest/request.rb', line 10
def method
@env['REQUEST_METHOD']
end
|
#nonce ⇒ Object
22
23
24
|
# File 'lib/rack/auth/digest/request.rb', line 22
def nonce
@nonce ||= Nonce.parse(params['nonce'])
end
|
#params ⇒ Object
26
27
28
|
# File 'lib/rack/auth/digest/request.rb', line 26
def params
@params ||= Params.parse(parts.last)
end
|