X7ROOT File Manager
Current Path:
/opt/alt/ruby26/lib64/ruby/gems/2.6.0/doc/rack-3.0.8/ri/Rack/Response
opt
/
alt
/
ruby26
/
lib64
/
ruby
/
gems
/
2.6.0
/
doc
/
rack-3.0.8
/
ri
/
Rack
/
Response
/
📄
%5b%5d%3d-i.ri
(287 B)
📄
%5b%5d-c.ri
(257 B)
📄
%5b%5d-i.ri
(278 B)
ðŸ“
..
ðŸ“
Helpers
ðŸ“
Raw
📄
body-i.ri
(234 B)
📄
cdesc-Response.ri
(1.69 KB)
📄
chunked%3f-i.ri
(247 B)
📄
close-i.ri
(241 B)
📄
delete_header-i.ri
(260 B)
📄
each-i.ri
(248 B)
📄
empty%3f-i.ri
(243 B)
📄
finish-i.ri
(538 B)
📄
get_header-i.ri
(280 B)
📄
has_header%3f-i.ri
(256 B)
📄
header-i.ri
(313 B)
📄
headers-i.ri
(239 B)
📄
length-i.ri
(238 B)
📄
new-c.ri
(1.31 KB)
📄
no_entity_body%3f-i.ri
(261 B)
📄
redirect-i.ri
(267 B)
📄
set_header-i.ri
(288 B)
📄
status-i.ri
(238 B)
📄
to_a-i.ri
(281 B)
📄
write-i.ri
(415 B)
Editing: new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"Rack::Response::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HInitialize the response object with the specified +body+, +status+ ;TI"and +headers+.;To:RDoc::Markup::BlankLine o; ; [I"NIf the +body+ is +nil+, construct an empty response object with internal ;TI"buffering.;T@o; ; [I"NIf the +body+ responds to +to_str+, assume it's a string-like object and ;TI"Nconstruct a buffered response object containing using that string as the ;TI"$initial contents of the buffer.;T@o; ; [I"NOtherwise it is expected +body+ conforms to the normal requirements of a ;TI"JRack response body, typically implementing one of +each+ (enumerable ;TI"&body) or +call+ (streaming body).;T@o; ; [I"LThe +status+ defaults to +200+ which is the "OK" HTTP status code. You ;TI"-can provide any other valid status code.;T@o; ; [I"OThe +headers+ must be a +Hash+ of key-value header pairs which conform to ;TI"Mthe Rack specification for response headers. The key must be a +String+ ;TI"Iinstance and the value can be either a +String+ or +Array+ instance.;T: @fileI"lib/rack/response.rb;T:0@omit_headings_from_table_of_contents_below00I" self;T[ I"-(body = nil, status = 200, headers = {});T@'FI" Response;TcRDoc::NormalClass00
Upload File
Create Folder