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.
| 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 |
new[][]=_rack_setup_headerbodychunked=chunked?configcontent_lengthcontent_length=content_typecontent_type=cookieseachfilenameheaderhttp_versionkeep_alivekeep_alive?reason_phraserequest_http_versionrequest_methodrequest_urisent_sizeset_errorset_redirectsetup_headerstatusstatus=status_lineattr_accessor bodyattr_accessor filenameattr_accessor keep_aliveattr_accessor rackattr_accessor reason_phraseattr_accessor request_http_versionattr_accessor request_methodattr_accessor request_uriattr_reader configattr_reader cookiesattr_reader headerattr_reader http_versionattr_reader sent_sizeattr_reader statusGenerated 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)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format