Sha256: 0ecb0d8d6704c75c8215c84b6dff83c1ffc94850707454ea8b4715c9c25c97fc
Contents?: true
Size: 1.12 KB
Versions: 25
Compression:
Stored size: 1.12 KB
Contents
module RubyApp module Rack require 'ruby_app' class Request def initialize(application) @application = application end def call(environment) RubyApp::Request.create!(environment) begin # RubyApp::Request.environment.each do |name, value| # RubyApp::Log.debug("REQUEST RubyApp::Request.environment[#{name.inspect}]=#{value.inspect}") # end # RubyApp::Log.debug("REQUEST RubyApp::Request.path=#{RubyApp::Request.path.inspect}") # RubyApp::Log.debug("REQUEST RubyApp::Request.language=#{RubyApp::Request.language.inspect}") # RubyApp::Log.debug("REQUEST RubyApp::Request.url=#{RubyApp::Request.url.inspect}") # RubyApp::Log.debug("REQUEST RubyApp::Request.query=#{RubyApp::Request.query.inspect}") # RubyApp::Request.query.each do |name, value| # RubyApp::Log.debug("REQUEST RubyApp::Request.query[#{name.inspect}]=#{value.inspect}") # end return @application.call(environment) ensure RubyApp::Request.destroy! end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems