diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-01-24 12:06:06 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-01-24 12:08:16 +1300 |
commit | ba030312f84d112be83f0387bb052da3650c9e03 (patch) | |
tree | fb1818013c841e50b8ef493f48b8ae90ab0f496b | |
parent | c66fcd6acc01383ffbb5af277d7caafe32d66928 (diff) | |
download | rack-response-documentation.tar.gz |
Revert moving attributes below `#initialize`.response-documentation
-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 |