Sha256: 0197a5c72dfacbdba4870389cba561d75d8150d8ef6b38d77a16b55eec105966
Contents?: true
Size: 843 Bytes
Versions: 3
Compression:
Stored size: 843 Bytes
Contents
module RubyApp module Rack require 'ruby_app' class Request def initialize(application) @application = application end def call(environment) RubyApp::Request.create!(environment) begin #environment.each do |name, value| # RubyApp::Log.debug("#{RubyApp::Log.prefix(self, __method__)} environment[#{name.inspect}]=#{value.inspect}") #end #RubyApp::Log.debug("#{RubyApp::Log.prefix(self, __method__)} RubyApp::Request.request_method=#{RubyApp::Request.request_method.inspect}") #RubyApp::Log.debug("#{RubyApp::Log.prefix(self, __method__)} RubyApp::Request.path=#{RubyApp::Request.path.inspect}") return @application.call(environment) ensure RubyApp::Request.destroy! end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.2.7 | lib/ruby_app/rack/request.rb |
RubyApp-0.2.6 | lib/ruby_app/rack/request.rb |
RubyApp-0.2.5 | lib/ruby_app/rack/request.rb |