ri > WEBrick::CGI

📛 NAME

WEBrick::CGI < Object

🚀 Quick Reference

Use CaseCommandDescription
Create a CGI scriptMyCGI.new.startStart the WEBrick CGI server
Handle GET requestdef do_GET(req, res)Define a GET handler that sets response body and status

📖 Description

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

🔧 Class Methods

🔧 Instance Methods

🏷️ Attributes

WEBrick::CGI
📛 NAME 🚀 Quick Reference 📖 Description 🔒 Constants 🔧 Class Methods 🔧 Instance Methods 🏷️ Attributes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 00:46 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format