Plack::Middleware::Devel::ForceResponse - emulate a run-down server for development
builder { enable 'Devel::ForceResponse'; sub { [ 200, ['Content-Type' => 'text/plain'], ['OK'] ] }; };
We often want a run-down server for client test in the QA phase. So, Plack::Middleware::Devel::ForceResponse emulates a run-down server.
Plack::Middleware::Devel::ForceResponse
the rate for the force response(0-100). If you set over 100, then all responses will override.
response status list like [400, 500, 503].
[400, 500, 503]
Plack::Middleware::Devel::ForceResponse is hosted on github: http://github.com/bayashi/Plack-Middleware-Devel-ForceResponse
I appreciate any feedback :D
Dai Okabayashi <bayashi@cpan.org>
Plack::Middleware
HTTP::Status
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Plack::Middleware::Devel::ForceResponse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Devel::ForceResponse
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Devel::ForceResponse
For more information on module installation, please visit the detailed CPAN module installation guide.