Sha256: 68279a6bf0482571feff485cab6835741ec45316a39dadadd56f21a643e37797

Contents?: true

Size: 259 Bytes

Versions: 3

Compression:

Stored size: 259 Bytes

Contents

require 'rack/request'
require 'json'

app = lambda do |env|
  req = Rack::Request.new(env)
  body = JSON.dump(req.params.merge({"QUERY_STRING" => env["QUERY_STRING"], "PATH_INFO" => env["PATH_INFO"]}))
  [200, { "X-Header" => "Works" }, [body]]
end

run app

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jubilee-3.0.0.beta2-java test/apps/simple.ru
jubilee-2.1.0.rc1-java test/apps/simple.ru
jubilee-2.1.0.beta-java test/apps/simple.ru