Class: Nitro::XhtmlFileHandler

Inherits:
WEBrick::HTTPServlet::DefaultFileHandler
  • Object
show all
Defined in:
lib/nitro/adapter/webrick.rb

Overview

A special handler for Xhtml files.

Instance Method Summary collapse

Instance Method Details

#do_GET(req, res) ⇒ Object



88
89
90
91
# File 'lib/nitro/adapter/webrick.rb', line 88

def do_GET(req, res)
  res['content-type'] = 'text/html'
  res.body = '<html><body>Permission denied</body></html>'
end