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
mail archives: https://bogomips.org/unicorn-public/ nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn nntp://news.gmane.org/gmane.comp.lang.ruby.unicorn.general public: unicorn-public@bogomips.org source code: git clone https://bogomips.org/unicorn.git