Sha256: 1ba7bfdd0e7e6ceec4e5f4c1a40afe53b1b9030321ddbae2b6e474aa7a439de2

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

class Persistent
  attr_reader :headers, :body

  def initialize(body = ["Hello"], headers = { "X-Header" => "Works" })
    @body = body
    @headers = headers
  end


  def call(env)
    status = Integer(env['HTTP_X_STATUS'] || 200)
    [status, headers, body]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-3.0.0.beta2-java test/apps/persistent.rb
jubilee-2.1.0.rc1-java test/apps/persistent.rb
jubilee-2.1.0.beta-java test/apps/persistent.rb