Class: InspectionServlet

Inherits:
BasicServlet
  • Object
show all
Defined in:
lib/newjs/jstest.rb

Instance Method Summary collapse

Methods inherited from BasicServlet

#do_POST

Instance Method Details

#do_GET(req, res) ⇒ Object

Raises:

  • (WEBrick::HTTPStatus::OK)


244
245
246
247
248
249
# File 'lib/newjs/jstest.rb', line 244

def do_GET(req, res)
  prevent_caching(res)
  res['Content-Type'] = "application/json"
  res.body = req.to_json
  raise WEBrick::HTTPStatus::OK
end