Method: Unicorn::Configurator#rewindable_input

Defined in:
lib/unicorn/configurator.rb

#rewindable_input(bool) ⇒ Object

Toggles making env rewindable. Disabling rewindability can improve performance by lowering I/O and memory usage for applications that accept uploads. Keep in mind that the Rack 1.x spec requires env to be rewindable, so this allows intentionally violating the current Rack 1.x spec.

rewindable_input defaults to true when used with Rack 1.x for Rack conformance. When Rack 2.x is finalized, this will most likely default to false while still conforming to the newer (less demanding) spec.



476
477
478
# File 'lib/unicorn/configurator.rb', line 476

def rewindable_input(bool)
  set_bool(:rewindable_input, bool)
end