Class: Spectacular::Server::Index
- Inherits:
-
WEBrick::HTTPServlet::AbstractServlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- Spectacular::Server::Index
- Defined in:
- lib/spectacular/server.rb
Instance Method Summary collapse
Instance Method Details
#do_GET(request, response) ⇒ Object
11 12 13 14 15 |
# File 'lib/spectacular/server.rb', line 11 def do_GET request, response response.status = 200 response['Content-Type'] = 'text/html' response.body = INDEX end |