Class: MaitreD::API::AuthenticationGuard
- Inherits:
-
Sliver::Hook
- Object
- Sliver::Hook
- MaitreD::API::AuthenticationGuard
- Defined in:
- lib/maitre_d/api/authentication_guard.rb
Instance Method Summary collapse
Instance Method Details
#continue? ⇒ Boolean
2 3 4 |
# File 'lib/maitre_d/api/authentication_guard.rb', line 2 def continue? end |
#respond ⇒ Object
6 7 8 9 10 |
# File 'lib/maitre_d/api/authentication_guard.rb', line 6 def respond response.status = 401 response.body = ['401 Unauthorized'] response.headers['Content-Length'] = response.body.first.length.to_s end |