Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
WEBrick
/
HTTPResponse
/
//opt/alt/ruby27/share/ri/system/WEBrick/HTTPResponse/body-i.ri
U:RDoc::Attr[iI" body:ETI"WEBrick::HTTPResponse#body;TI"RW;T:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Body may be:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"a String;;To;;0; [o; ; [I"Can IO-like object that responds to +#read+ and +#readpartial+;;To;;0; [o; ; [I"1a Proc-like object that responds to +#call+.;To:RDoc::Markup::BlankLine o; ; [I"CIn the latter case, either #chunked= should be set to +true+, ;TI"Cor <code>header['content-length']</code> explicitly provided. ;TI" Example:;T@ o:RDoc::Markup::Verbatim; [I")server.mount_proc '/' do |req, res| ;TI" res.chunked = true ;TI" # or ;TI"+ # res.header['content-length'] = 10 ;TI": res.body = proc { |out| out.write(Time.now.to_s) } ;TI"end;T:@format0: @fileI" lib/webrick/httpresponse.rb;T:0@omit_headings_from_table_of_contents_below0F@.I"WEBrick::HTTPResponse;TcRDoc::NormalClass0