class Itiscold::WebServer::InfoServlet

Public Instance Methods

do_GET(request, response) click to toggle source
# File lib/itiscold.rb, line 335
def do_GET request, response
  response.status = 200
  response['Content-Type'] = 'text/json'
  @mutex.synchronize do
    json = JSON.dump(@tty.device_info.to_h)
    response.body = json
  end
end