GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLACK::MIDDLEWARE::FORCEENV (3)

.ds Aq ’

NAME

Plack::Middleware::ForceEnv - Force set environment variables for testing

CONTENTS

SYNOPSIS



    # in app.psgi
    use Plack::Builder;

    builder {
        enable ForceEnv =>
            REMOTE_ADDR => "127.0.0.1",
            REMOTE_USER => "trs";
        $app;
    };

    # with plackup
    plackup -e enable ForceEnv => REMOTE_USER => "trs" app.psgi



DESCRIPTION

ForceEnv modifies the environment passed to the application by adding your specified key value pairs.

This is primarily useful when testing apps under plackup (or similar) in a development environment.

AUTHOR

Thomas Sibley <tsibley@cpan.org>

LICENSE

This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLACK::MIDDLEWARE::FORCEENV (3) 2011-01-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.