Sha256: 5333e9f38f364538b7c592b92379ac243ff9708b70d3923140126243862d5383

Contents?: true

Size: 365 Bytes

Versions: 17

Compression:

Stored size: 365 Bytes

Contents

module Pancake
  module Mixins
    module ResponseHelper
      def headers
        @headers ||= {}
      end

      def status
        @status ||= 200
      end

      def status=(st)
        @status = st
      end

      def redirect(location, status = 302)
        r = Rack::Response.new
        r.redirect(location, status)
        r
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pancake-0.3.0 lib/pancake/mixins/response_helper.rb
pancake-0.2.0 lib/pancake/mixins/response_helper.rb
pancake-0.1.29 lib/pancake/mixins/response_helper.rb
pancake-0.1.28 lib/pancake/mixins/response_helper.rb
pancake-0.1.27 lib/pancake/mixins/response_helper.rb
pancake-0.1.26 lib/pancake/mixins/response_helper.rb
pancake-0.1.25 lib/pancake/mixins/response_helper.rb
pancake-0.1.24 lib/pancake/mixins/response_helper.rb
pancake-0.1.22 lib/pancake/mixins/response_helper.rb
pancake-0.1.20 lib/pancake/mixins/response_helper.rb
pancake-0.1.19 lib/pancake/mixins/response_helper.rb
pancake-0.1.18 lib/pancake/mixins/response_helper.rb
pancake-0.1.17 lib/pancake/mixins/response_helper.rb
pancake-0.1.16 lib/pancake/mixins/response_helper.rb
pancake-0.1.15 lib/pancake/mixins/response_helper.rb
pancake-0.1.13 lib/pancake/mixins/response_helper.rb
pancake-0.1.12 lib/pancake/mixins/response_helper.rb