Class: Rack::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/whisper/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lengthObject (readonly)

Returns the value of attribute length.



6
7
8
# File 'lib/whisper/server.rb', line 6

def length
  @length
end

Instance Method Details

#content_length=(t) ⇒ Object



8
# File 'lib/whisper/server.rb', line 8

def content_length= t; headers["Content-Length"] = t.to_s end

#content_type=(t) ⇒ Object



7
# File 'lib/whisper/server.rb', line 7

def content_type= t; headers["Content-Type"] = t end