ri > WEBrick::HTTPResponse

WEBrick::HTTPResponse < Object

from /home/chedong/.local/share/rdoc

This monkey patch allows for applications to perform their own chunking through WEBrick::HTTPResponse if rack is set to true.

An HTTP response. This is filled in by the service or do_* methods of a WEBrick HTTP Servlet.

🚀 Quick Reference

Use Case Command Description
🔧 Create a new response WEBrick::HTTPResponse.new(config) Initializes a new HTTP response object
📝 Set response body response.body = "Hello" Sets the response body content
🏷️ Set content type response.content_type = "text/html" Sets the Content-Type header
🔀 Set redirect response.set_redirect(request, 302, url) Configures a redirect response with status code
⚠️ Set error response.set_error(request, 404) Sets the response to an error status

📚 Class Methods

🔧 Instance Methods

🏷️ Attributes

WEBrick::HTTPResponse
🚀 Quick Reference 📚 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 22:52 @216.73.216.177
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