Plack::VCR - API for interacting with a frozen request file
version 0.06
use Plack::VCR; my $vcr = Plack::VCR->new(filename => 'requests.out'); while(my $interaction = $vcr->next) { my $req = $interaction->request; # $req is an HTTP::Request object; do something with it }
Plack::VCR provides an API for iterating over the HTTP interactions saved to a file by Plack::Middleware::Recorder.
Creates a new VCR that will iterate over the interactions contained in $filename.
$filename
Returns the next HTTP interaction in the stream.
Plack::Middleware::Recorder, Plack::VCR::Interaction
Rob Hoelz <rob@hoelz.ro>
This software is copyright (c) 2015 by Rob Hoelz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Please report any bugs or feature requests on the bugtracker website https://github.com/hoelzro/plack-middleware-recorder/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
To install Plack::Middleware::Recorder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Recorder
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Recorder
For more information on module installation, please visit the detailed CPAN module installation guide.