Sha256: 750a46640fccf88294bbe62497c11c4233f603465e935cb23d8feb07a487aafd
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 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.to_json @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restpack-web-0.0.8 | lib/restpack-web/app.rb |