Servlet for handling CGI scripts
Example:
server.mount('/cgi/my_script', WEBrick::HTTPServlet::CGIHandler,
'/path/to/my_script')
Methods
- N
Constants
| Ruby | = | RbConfig.ruby |
| CGIRunner | = | "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\"" |
Class Public methods
new(server, name)
Link
Creates a new CGI script servlet for the script
at name
Source: show
# File lib/webrick/httpservlet/cgihandler.rb, line 34 def initialize(server, name) super(server, name) @script_filename = name @tempdir = server[:TempDir] @cgicmd = "#{CGIRunner} #{server[:CGIInterpreter]}" end