Class Rack::Adapter::Camping
In: lib/rack/adapter/camping.rb
Parent: Object

Methods

call   new  

Public Class methods

[Source]

   # File lib/rack/adapter/camping.rb, line 4
4:       def initialize(app)
5:         @app = app
6:       end

Public Instance methods

[Source]

    # File lib/rack/adapter/camping.rb, line 8
 8:       def call(env)
 9:         env["PATH_INFO"] ||= ""
10:         env["SCRIPT_NAME"] ||= ""
11:         controller = @app.run(env['rack.input'], env)
12:         h = controller.headers
13:         h.each_pair do |k,v|
14:           if v.kind_of? URI
15:             h[k] = v.to_s
16:           end
17:         end
18:         [controller.status, controller.headers, [controller.body.to_s]]
19:       end

[Validate]