diff options
-rw-r--r-- | lib/rack/response.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rack/response.rb b/lib/rack/response.rb index fb9d734b..7425eb75 100644 --- a/lib/rack/response.rb +++ b/lib/rack/response.rb @@ -27,6 +27,12 @@ module Rack CHUNKED = 'chunked' STATUS_WITH_NO_ENTITY_BODY = Utils::STATUS_WITH_NO_ENTITY_BODY + attr_accessor :length, :status, :body + attr_reader :headers + + # @deprecated Use {#headers} instead. + alias header headers + # Initialize the response object with the specified body, status # and headers. # @@ -61,12 +67,6 @@ module Rack yield self if block_given? end - attr_accessor :length, :status, :body - attr_reader :headers - - # @deprecated Use {#headers} instead. - alias header headers - def redirect(target, status = 302) self.status = status self.location = target |