The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::Devel::ForceResponse - emulate a run-down server for development

SYNOPSIS

    builder {
        enable 'Devel::ForceResponse';
        sub { [ 200, ['Content-Type' => 'text/plain'], ['OK'] ] };
    };

DESCRIPTION

We often want a run-down server for client test in the QA phase. So, Plack::Middleware::Devel::ForceResponse emulates a run-down server.

OPTIONS

rate : integer // 25

the rate for the force response(0-100). If you set over 100, then all responses will override.

response : array ref // [500]

response status list like [400, 500, 503].

METHODS

prepare_app

call

REPOSITORY

Plack::Middleware::Devel::ForceResponse is hosted on github: http://github.com/bayashi/Plack-Middleware-Devel-ForceResponse

I appreciate any feedback :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Plack::Middleware

HTTP::Status

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.