123456789_123456789_123456789_123456789_123456789_

Class: Rack::Events::BufferedResponse

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Rack::Response::Raw
Defined in: lib/rack/events.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Response::Raw - Inherited

Response::Helpers - Included

#add_header

Add a header that may have multiple values.

#cache!

Specify that the content should be cached.

#content_length, #delete_cookie,
#do_not_cache!

Specifies that the content shouldn’t be cached.

#include?, #media_type, #media_type_params, #set_cookie

Constructor Details

.new(status, headers, body) ⇒ BufferedResponse

[ GitHub ]

  
# File 'lib/rack/events.rb', line 98

def initialize(status, headers, body)
  super(status, headers)
  @body = body
end

Instance Attribute Details

#body (readonly)

[ GitHub ]

  
# File 'lib/rack/events.rb', line 96

attr_reader :body

Instance Method Details

#to_a

[ GitHub ]

  
# File 'lib/rack/events.rb', line 103

def to_a; [status, headers, body]; end