PATH:
opt
/
alt
/
ruby26
/
lib64
/
ruby
/
gems
/
2.6.0
/
doc
/
rack-3.0.8
/
ri
/
Rack
/
Response
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
[-] status-i.ri
[edit]
[-] empty%3f-i.ri
[edit]
[-] close-i.ri
[edit]
[-] get_header-i.ri
[edit]
[-] header-i.ri
[edit]
[-] chunked%3f-i.ri
[edit]
[+]
Helpers
[-] write-i.ri
[edit]
[+]
Raw
[-] headers-i.ri
[edit]
[-] redirect-i.ri
[edit]
[-] no_entity_body%3f-i.ri
[edit]
[-] to_a-i.ri
[edit]
[-] body-i.ri
[edit]
[-] cdesc-Response.ri
[edit]
[-] has_header%3f-i.ri
[edit]
[-] each-i.ri
[edit]
[-] delete_header-i.ri
[edit]
[+]
..
[-] set_header-i.ri
[edit]
[-] finish-i.ri
[edit]
[-] %5b%5d-i.ri
[edit]
[-] new-c.ri
[edit]
[-] %5b%5d-c.ri
[edit]
[-] length-i.ri
[edit]
[-] %5b%5d%3d-i.ri
[edit]