Class: ScriptWrapper

Inherits:
HTTPServlet::AbstractServlet
  • Object
show all
Defined in:
lib/tasks/test-task.rb

Instance Method Summary collapse

Instance Method Details

#do_GET(request, response) ⇒ Object



83
84
85
86
87
88
89
# File 'lib/tasks/test-task.rb', line 83

def do_GET(request, response)
  response.status = 200
  response['Content-Type'] = 'text/html'
  
  file= request.query.to_s
  response.body = html_wrapper_for_script_file(file)
end