Class: Klenod::Rack::Response
- Inherits:
-
Data
- Object
- Data
- Klenod::Rack::Response
- Defined in:
- lib/klenod/rack/asset_app.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
7 8 9 |
# File 'lib/klenod/rack/asset_app.rb', line 7 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers
7 8 9 |
# File 'lib/klenod/rack/asset_app.rb', line 7 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status
7 8 9 |
# File 'lib/klenod/rack/asset_app.rb', line 7 def status @status end |
Instance Method Details
#protocol_response ⇒ Object
12 13 14 15 16 |
# File 'lib/klenod/rack/asset_app.rb', line 12 def protocol_response require "protocol/http/response" Protocol::HTTP::Response[status, headers, [body]] end |
#rack_response ⇒ Object
8 9 10 |
# File 'lib/klenod/rack/asset_app.rb', line 8 def rack_response [status, headers, [body]] end |