Class: Marta::Server::WelcomeServlet
- Inherits:
-
WEBrick::HTTPServlet::AbstractServlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- Marta::Server::WelcomeServlet
- Defined in:
- lib/marta/server.rb
Overview
Note:
It is believed that no user will use it
Welcome Servlet
Instance Method Summary collapse
Instance Method Details
#do_GET(request, response) ⇒ Object
60 61 62 63 64 65 66 67 |
# File 'lib/marta/server.rb', line 60 def do_GET (request, response) response.status = 200 response.content_type = "text/html" response.body = "<html><body><h1>Welcome!</h1></hr><h2>If You can "\ "see this label most probably Marta is working. I hope.</h2></hr>"\ "<a href='https://github.com/sseleznevqa/marta'>GITHUB link</a>"\ "</body></html>" end |