WEBrick::CGI < Object
| Use Case | Command | Description |
|---|---|---|
| Create a CGI script | MyCGI.new.start | Start the WEBrick CGI server |
| Handle GET request | def do_GET(req, res) | Define a GET handler that sets response body and status |
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
CGIError — The CGI error exception classnew[]configloggerservicestartconfig (attr_reader)logger (attr_reader)Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 09:52 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format