Sha256: f895bdc2e8a5d4c0d677752f7c4691e19821c4a7a66084c7e1475220c80e70b1

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

module RestPack
  module Web
    class App
      def initialize(app)#, settings = {})
        #p "RestPack::Web::App.initialize"
        @app = app
       # @settings = settings
        
       # p "settings: #{settings}"
      end

      def call(env)      
        env["restpack"] ||= {}
        host = env["SERVER_NAME"]
      
        env["restpack"][:host] = host #TODO: GJ: add some magic
        #env["restpack"][:settings] = @settings

        @app.call(env)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
restpack-web-0.0.7 lib/restpack-web/app.rb