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

Version Path
kastner-rack-0.3.186 lib/rack/adapter/camping.rb
kjvarga-rack-1.0.0 lib/rack/adapter/camping.rb
p8-castronaut-0.6.1.1 vendor/rack/lib/rack/adapter/camping.rb
qoobaa-rack-1.0.0.1 lib/rack/adapter/camping.rb
qoobaa-rack-1.0.2 lib/rack/adapter/camping.rb
relevance-castronaut-0.6.0 vendor/rack/lib/rack/adapter/camping.rb
relevance-castronaut-0.6.1 vendor/rack/lib/rack/adapter/camping.rb
relevance-castronaut-0.7.4 vendor/rack/lib/rack/adapter/camping.rb
relevance-castronaut-0.7.5 vendor/rack/lib/rack/adapter/camping.rb
timocratic-rack-1.0.0 lib/rack/adapter/camping.rb
rack-1.1.6 lib/rack/adapter/camping.rb
rack-1.1.5 lib/rack/adapter/camping.rb
rack-1.1.4 lib/rack/adapter/camping.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rack-1.1.3/lib/rack/adapter/camping.rb
rack-1.1.3 lib/rack/adapter/camping.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/rack-1.1.2/lib/rack/adapter/camping.rb
rack-1.1.2 lib/rack/adapter/camping.rb
rack-1.1.1 lib/rack/adapter/camping.rb
rack-1.1.1.pre lib/rack/adapter/camping.rb
eac-rack-1.1.1 lib/rack/adapter/camping.rb