class Yast::IndexServlet
a webrick servlet which returns a basic HTML info about the server, just to avoid that nasty 404 error page when someone opens the server URL in a web browser
Constants
- INDEX_FILE
Public Instance Methods
do_GET(_request, response)
click to toggle source
# File lib/yast/index_servlet.rb, line 30 def do_GET(_request, response) response.status = 200 response.content_type = "text/html" response.body = File.read(INDEX_FILE) end