diff options
author | Michael Fellinger <m.fellinger@gmail.com> | 2009-01-19 14:33:45 +0900 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2009-02-22 14:25:21 +0100 |
commit | 65fe834bca9899d97d43201c294096c2bf3d257a (patch) | |
tree | 0915635434cea6e749f33ce39c5d72cd955777ed | |
parent | 5c00dd698edb953b4bee432fa12a20ba69a067c1 (diff) | |
download | rack-65fe834bca9899d97d43201c294096c2bf3d257a.tar.gz |
Add Response#length and Response#length=
-rw-r--r-- | lib/rack/response.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rack/response.rb b/lib/rack/response.rb index a5931101..caf60d5b 100644 --- a/lib/rack/response.rb +++ b/lib/rack/response.rb @@ -16,6 +16,8 @@ module Rack # Your application's +call+ should end returning Response#finish. class Response + attr_accessor :length + def initialize(body=[], status=200, header={}, &block) @status = status @header = Utils::HeaderHash.new({"Content-Type" => "text/html"}. |