Class: HealthCheck::MiddlewareHealthcheck::Request
- Inherits:
-
Rack::Auth::AbstractRequest
- Object
- Rack::Auth::AbstractRequest
- HealthCheck::MiddlewareHealthcheck::Request
- Defined in:
- lib/health_check/middleware_health_check.rb
Instance Method Summary collapse
Instance Method Details
#basic? ⇒ Boolean
84 85 86 |
# File 'lib/health_check/middleware_health_check.rb', line 84 def basic? scheme == 'basic' end |
#credentials ⇒ Object
88 89 90 |
# File 'lib/health_check/middleware_health_check.rb', line 88 def credentials @credentials ||= params.unpack1('m*').split(/:/, 2) end |
#password ⇒ Object
96 97 98 |
# File 'lib/health_check/middleware_health_check.rb', line 96 def password credentials.last end |
#username ⇒ Object
92 93 94 |
# File 'lib/health_check/middleware_health_check.rb', line 92 def username credentials.first end |