This middleware is used to ensure input is buffered to memory or disk (depending on size) before the application is dispatched by entirely consuming it (from TeeInput) beforehand.
Usage (in config.ru):
require 'unicorn/preread_input' if defined?(Unicorn) use Unicorn::PrereadInput end run YourApp.new
Generated with the Darkfish Rdoc Generator 2.