• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

inc/Module/H15-Jan-2011-2,9312,200

lib/Plack/Middleware/H15-Jan-2011-6115

t/H15-Jan-2011-5043

MANIFESTH A D15-Jan-2011415 1817

META.ymlH A D15-Jan-2011538 2524

Makefile.PLH A D15-Jan-2011174 117

READMEH A D15-Jan-2011808 3324

README

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