class

WEBrick::CGI

v2_1_10 - Show latest stable - Superclass: Object

A CGI library using WEBrick requests and responses.

Example:

class MyCGI < WEBrick::CGI
  def do_GET req, res
    res.body = 'it worked!'
    res.status = 200
  end
end

MyCGI.new.start

Constants

CGIError = Class.new(StandardError)

Attributes

[R]config
[R]logger

Files

  • lib/webrick/cgi.rb

Nested classes and modules