Class: Klenod::Rack::Response

Inherits:
Data
  • Object
show all
Defined in:
lib/klenod/rack/asset_app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



7
8
9
# File 'lib/klenod/rack/asset_app.rb', line 7

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



7
8
9
# File 'lib/klenod/rack/asset_app.rb', line 7

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/klenod/rack/asset_app.rb', line 7

def status
  @status
end

Instance Method Details

#protocol_responseObject



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_responseObject



8
9
10
# File 'lib/klenod/rack/asset_app.rb', line 8

def rack_response
  [status, headers, [body]]
end