Class: CGI
Instance Method Summary collapse
- #env_table ⇒ Object
-
#initialize(type = "query", table = nil, stdin = nil) ⇒ CGI
constructor
A new instance of CGI.
- #stdinput ⇒ Object
Constructor Details
#initialize(type = "query", table = nil, stdin = nil) ⇒ CGI
Returns a new instance of CGI.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/webrick_server.rb', line 22 def initialize(type = "query", table = nil, stdin = nil) @env_table, @stdin = table, stdin if defined?(MOD_RUBY) && !ENV.key?("GATEWAY_INTERFACE") Apache.request.setup_cgi_env end extend QueryExtension @multipart = false if defined?(CGI_PARAMS) warn "do not use CGI_PARAMS and CGI_COOKIES" @params = CGI_PARAMS.dup @cookies = CGI_COOKIES.dup else initialize_query() # set @params, @cookies end @output_cookies = nil @output_hidden = nil end |