module

CGI::QueryExtension

v1_9_3_125 - Show latest stable

Mixin module that provides the following:

  1. Access to the CGI environment variables as methods. See

documentation to the CGI class for a list of these variables.  The
methods are exposed by removing the leading +HTTP_+ (if it exists) and
downcasing the name.  For example, +auth_type+ will return the
environment variable +AUTH_TYPE+, and +accept+ will return the value
for +HTTP_ACCEPT+.
  1. Access to cookies, including the cookies attribute.

  2. Access to parameters, including the params attribute, and overloading

#[] to perform parameter value lookup by key.
  1. The initialize_query method, for initializing the above

mechanisms, handling multipart forms, and allowing the
class to be used in "offline" mode.

Attributes

[RW]cookies
[R]files
[R]params

Files

  • lib/cgi/core.rb