# Table of Contents - cgi: Ruby Standard Library Documentation

## Classes and Modules

- CGI
  - Overview
  - Introduction
  - Queries
  - Environmental Variables
  - Parameters
  - Cookies
  - Multipart requests
  - Responses
  - Writing output
  - Generating HTML
  - Utility HTML escape and other methods like a function.
  - Examples of use
  - Get form values
  - Get form values as hash
  - Save form values to file
  - Restore form values from file
  - Get multipart form values
  - Get cookie values
  - Get cookie objects
  - Print http header and html string to $DEFAULT_OUTPUT ($>)
  - Some utility methods
  - Some utility methods like a function
- CGI::Cookie
  - Examples of use
- CGI::HTML3
- CGI::HTML4
- CGI::HTML4Fr
- CGI::HTML4Tr
- CGI::HTML5
- CGI::HtmlExtension
- CGI::InvalidEncoding
- CGI::QueryExtension
- CGI::Session
  - Overview
  - Lifecycle
  - Setting and retrieving session data.
  - Storing session state
  - Maintaining the session id.
  - Examples of use
  - Setting the user’s name
  - Creating a new session safely
- CGI::Session::FileStore
- CGI::Session::MemoryStore
- CGI::Session::NullStore
- CGI::Session::PStore
- CGI::Util

## Methods

- ::accept_charset — CGI
- ::accept_charset= — CGI
- ::new — CGI
- ::new — CGI::Cookie
- ::new — CGI::Session
- ::new — CGI::Session::FileStore
- ::new — CGI::Session::MemoryStore
- ::new — CGI::Session::NullStore
- ::new — CGI::Session::PStore
- ::parse — CGI
- ::parse — CGI::Cookie
- #[] — CGI::Session
- #[] — CGI::QueryExtension
- #[]= — CGI::Session
- #_no_crlf_check — CGI
- #a — CGI::HtmlExtension
- #base — CGI::HtmlExtension
- #blockquote — CGI::HtmlExtension
- #caption — CGI::HtmlExtension
- #checkbox — CGI::HtmlExtension
- #checkbox_group — CGI::HtmlExtension
- #close — CGI::Session
- #close — CGI::Session::FileStore
- #close — CGI::Session::MemoryStore
- #close — CGI::Session::NullStore
- #close — CGI::Session::PStore
- #create_new_id — CGI::Session
- #delete — CGI::Session
- #delete — CGI::Session::FileStore
- #delete — CGI::Session::MemoryStore
- #delete — CGI::Session::NullStore
- #delete — CGI::Session::PStore
- #domain= — CGI::Cookie
- #env_table — CGI
- #escape — CGI::Util
- #escapeElement — CGI::Util
- #escapeHTML — CGI::Util
- #escapeURIComponent — CGI::Util
- #escape_element — CGI::Util
- #escape_html — CGI::Util
- #escape_uri_component — CGI::Util
- #file_field — CGI::HtmlExtension
- #form — CGI::HtmlExtension
- #h — CGI::Util
- #has_key? — CGI::QueryExtension
- #header — CGI
- #hidden — CGI::HtmlExtension
- #html — CGI::HtmlExtension
- #http_header — CGI
- #httponly= — CGI::Cookie
- #image_button — CGI::HtmlExtension
- #img — CGI::HtmlExtension
- #include? — CGI::QueryExtension
- #initialize_query — CGI::QueryExtension
- #inspect — CGI::Cookie
- #key? — CGI::QueryExtension
- #keys — CGI::QueryExtension
- #multipart? — CGI::QueryExtension
- #multipart_form — CGI::HtmlExtension
- #name= — CGI::Cookie
- #out — CGI
- #params= — CGI::QueryExtension
- #password_field — CGI::HtmlExtension
- #path= — CGI::Cookie
- #popup_menu — CGI::HtmlExtension
- #pretty — CGI::Util
- #print — CGI
- #radio_button — CGI::HtmlExtension
- #radio_group — CGI::HtmlExtension
- #raw_cookie — CGI::QueryExtension
- #raw_cookie2 — CGI::QueryExtension
- #read_from_cmdline — CGI::QueryExtension
- #read_multipart — CGI::QueryExtension
- #reset — CGI::HtmlExtension
- #restore — CGI::Session::FileStore
- #restore — CGI::Session::MemoryStore
- #restore — CGI::Session::NullStore
- #restore — CGI::Session::PStore
- #rfc1123_date — CGI::Util
- #scrolling_list — CGI::HtmlExtension
- #secure= — CGI::Cookie
- #stdinput — CGI
- #stdoutput — CGI
- #submit — CGI::HtmlExtension
- #text_field — CGI::HtmlExtension
- #textarea — CGI::HtmlExtension
- #to_s — CGI::Cookie
- #unescape — CGI::Util
- #unescapeElement — CGI::Util
- #unescapeHTML — CGI::Util
- #unescapeURIComponent — CGI::Util
- #unescape_element — CGI::Util
- #unescape_html — CGI::Util
- #unescape_uri_component — CGI::Util
- #update — CGI::Session
- #update — CGI::Session::FileStore
- #update — CGI::Session::MemoryStore
- #update — CGI::Session::NullStore
- #update — CGI::Session::PStore
- #value — CGI::Cookie
- #value= — CGI::Cookie