1NAME 2 Plack::Middleware::ForceEnv - Force set environment variables for 3 testing 4 5SYNOPSIS 6 # in app.psgi 7 use Plack::Builder; 8 9 builder { 10 enable 'ForceEnv' => 11 REMOTE_ADDR => "127.0.0.1", 12 REMOTE_USER => "trs"; 13 $app; 14 }; 15 16 # with plackup 17 plackup -e 'enable ForceEnv => REMOTE_USER => "trs"' app.psgi 18 19DESCRIPTION 20 ForceEnv modifies the environment passed to the application by adding 21 your specified key value pairs. 22 23 This is primarily useful when testing apps under plackup (or similar) in 24 a development environment. 25 26AUTHOR 27 Thomas Sibley <tsibley@cpan.org> 28 29LICENSE 30 This library is free software; you may redistribute it and/or modify it 31 under the same terms as Perl itself. 32 33