Class: InspectionServlet

Inherits:
BasicServlet
  • Object
show all
Defined in:
lib/zfben_hanoi/webrick.rb

Instance Method Summary collapse

Methods inherited from BasicServlet

#do_POST

Instance Method Details

#do_GET(req, res) ⇒ Object

Raises:

  • (WEBrick::HTTPStatus::OK)


80
81
82
83
84
85
# File 'lib/zfben_hanoi/webrick.rb', line 80

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