1 # -*- encoding: binary -*-
10 autoload :Monitor, 'upr/monitor'
11 autoload :Params, 'upr/params'
12 autoload :InputWrapper, 'upr/input_wrapper'
13 autoload :JSON, 'upr/json'
15 # Initializes a new instance of Upr::InputWrapper. Usage in config.ru:
17 # use Upr, :path_info => %w(/upload),
18 # :drb => "druby://192.168.0.1:666",
21 # This middleware MUST be be loaded before any parameter parsers
22 # like ActionController::ParamsParser in Rails.
24 # For use in RAILS_ROOT/config/environment.rb, the following
25 # works insdie the Rails::Initializer.run block:
27 # config.middleware.insert_before('ActionController::ParamsParser',
28 # 'Upr', :path_info => '/', :drb => "druby://192.168.0.1:666")
31 InputWrapper.new(*args)