Sha256: 11aa2ad339e352644624729e474b1a5c7d3f34f2da4159bdcb4d80ae7540667f
Contents?: true
Size: 483 Bytes
Versions: 60
Compression:
Stored size: 483 Bytes
Contents
module Rack module Adapter class Camping def initialize(app) @app = app end def call(env) env["PATH_INFO"] ||= "" env["SCRIPT_NAME"] ||= "" controller = @app.run(env['rack.input'], env) h = controller.headers h.each_pair do |k,v| if v.kind_of? URI h[k] = v.to_s end end [controller.status, controller.headers, [controller.body.to_s]] end end end end
Version data entries
60 entries across 59 versions & 21 rubygems