Class: Rack::Events::BufferedResponse
- Inherits:
-
Response::Raw
- Object
- Response::Raw
- Rack::Events::BufferedResponse
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/events.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from Response::Raw
Instance Method Summary collapse
-
#initialize(status, headers, body) ⇒ BufferedResponse
constructor
A new instance of BufferedResponse.
- #to_a ⇒ Object
Methods inherited from Response::Raw
#delete_header, #get_header, #has_header?, #set_header
Methods included from Response::Helpers
#accepted?, #add_header, #bad_request?, #cache!, #cache_control, #cache_control=, #client_error?, #content_length, #content_type, #content_type=, #created?, #delete_cookie, #do_not_cache!, #etag, #etag=, #forbidden?, #include?, #informational?, #invalid?, #location, #location=, #media_type, #media_type_params, #method_not_allowed?, #moved_permanently?, #no_content?, #not_found?, #ok?, #precondition_failed?, #redirect?, #redirection?, #server_error?, #set_cookie, #set_cookie_header, #set_cookie_header=, #successful?, #unauthorized?, #unprocessable?
Constructor Details
#initialize(status, headers, body) ⇒ BufferedResponse
Returns a new instance of BufferedResponse.
94 95 96 97 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/events.rb', line 94 def initialize(status, headers, body) super(status, headers) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
92 93 94 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/events.rb', line 92 def body @body end |
Instance Method Details
#to_a ⇒ Object
99 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rack-2.2.5/lib/rack/events.rb', line 99 def to_a; [status, headers, body]; end |