class Cgi_is_retarded
This scripts start an appserver, executes a HTTP-request and terminates. Good for programming appserver-supported projects without running an appserver all the time, but really slow because of startup for every request.
Public Instance Methods
cgi()
click to toggle source
# File lib/scripts/knjappserver_cgi.rb, line 20 def cgi @cgi = CGI.new if !@cgi return @cgi end
content_type()
click to toggle source
# File lib/scripts/knjappserver_cgi.rb, line 16 def content_type return ENV["CONTENT_TYPE"] end
env_table()
click to toggle source
# File lib/scripts/knjappserver_cgi.rb, line 8 def env_table return ENV end
params()
click to toggle source
# File lib/scripts/knjappserver_cgi.rb, line 25 def params return self.cgi.params end
print(arg)
click to toggle source
# File lib/scripts/knjappserver_cgi.rb, line 29 def print(arg) Kernel.print arg.to_s end
request_method()
click to toggle source
# File lib/scripts/knjappserver_cgi.rb, line 12 def request_method return ENV["REQUEST_METHOD"] end