summary refs log tree commit
diff options
context:
space:
mode:
authorMichael Fellinger <m.fellinger@gmail.com>2009-01-19 14:33:45 +0900
committerChristian Neukirchen <chneukirchen@gmail.com>2009-02-22 14:25:21 +0100
commit65fe834bca9899d97d43201c294096c2bf3d257a (patch)
tree0915635434cea6e749f33ce39c5d72cd955777ed
parent5c00dd698edb953b4bee432fa12a20ba69a067c1 (diff)
downloadrack-65fe834bca9899d97d43201c294096c2bf3d257a.tar.gz
Add Response#length and Response#length=
-rw-r--r--lib/rack/response.rb2
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"}.