%PDF- %PDF-
Direktori : /opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Response/ |
Current File : //opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Response/cdesc-Response.yaml |
--- !ruby/object:RI::ClassDescription attributes: - !ruby/object:RI::Attribute comment: name: body rw: RW - !ruby/object:RI::Attribute comment: name: header rw: R - !ruby/object:RI::Attribute comment: name: length rw: RW - !ruby/object:RI::Attribute comment: name: status rw: RW class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: Rack::Response provides a convenient interface to create a Rack response. - !ruby/struct:SM::Flow::P body: It allows setting of headers and cookies, and provides useful defaults (a OK response containing HTML). - !ruby/struct:SM::Flow::P body: You can use Response#write to iteratively generate your response, but note that this is buffered by Rack::Response until you call <tt>finish</tt>. <tt>finish</tt> however can take a block inside which calls to <tt>write</tt> are synchronous with the Rack response. - !ruby/struct:SM::Flow::P body: Your application's <tt>call</tt> should end returning Response#finish. constants: - !ruby/object:RI::Constant comment: name: CHUNKED value: "'chunked'.freeze" - !ruby/object:RI::Constant comment: name: TRANSFER_ENCODING value: "'Transfer-Encoding'.freeze" full_name: Rack::Response includes: - !ruby/object:RI::IncludedModule name: Helpers instance_methods: - !ruby/object:RI::MethodSummary name: "[]" - !ruby/object:RI::MethodSummary name: "[]=" - !ruby/object:RI::MethodSummary name: close - !ruby/object:RI::MethodSummary name: delete_cookie - !ruby/object:RI::MethodSummary name: each - !ruby/object:RI::MethodSummary name: empty? - !ruby/object:RI::MethodSummary name: finish - !ruby/object:RI::MethodSummary name: redirect - !ruby/object:RI::MethodSummary name: set_cookie - !ruby/object:RI::MethodSummary name: to_a - !ruby/object:RI::MethodSummary name: to_ary - !ruby/object:RI::MethodSummary name: write name: Response superclass: Object