Class: Upman::Extensions::Ping::Servlet
- Inherits:
-
Server::BaseServlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- Server::BaseServlet
- Upman::Extensions::Ping::Servlet
- Defined in:
- lib/upman/extensions/ping.rb
Instance Attribute Summary
Attributes inherited from Server::BaseServlet
Instance Method Summary collapse
-
#do_GET(request, response) ⇒ Object
rubocop:disable Naming/MethodName.
- #perform_action ⇒ Object
Methods inherited from Server::BaseServlet
#bad_request, #get_param, #initialize, #is_authenticated, #not_authorized, #ok
Methods included from Utils::Helper
Constructor Details
This class inherits a constructor from Upman::Server::BaseServlet
Instance Method Details
#do_GET(request, response) ⇒ Object
rubocop:disable Naming/MethodName
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/upman/extensions/ping.rb', line 13 def do_GET(request, response) # rubocop:enable Naming/MethodName super(request, response) unless is_authenticated(request) response = (response, "Request declined") return response end response = ok(response, perform_action) end |