Rob Hoelz > Plack-Middleware-Recorder-0.03 > Plack::VCR

Download:
Plack-Middleware-Recorder-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Plack::VCR - API for interacting with a frozen request file

VERSION ^

version 0.03

SYNOPSIS ^

  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
  }

DESCRIPTION ^

Plack::VCR provides an API for iterating over the HTTP interactions saved to a file by Plack::Middleware::Recorder.

METHODS ^

new(filename => $filename)

Creates a new VCR that will iterate over the interactions contained in $filename.

next

Returns the next HTTP interaction in the stream.

SEE ALSO ^

Plack::Middleware::Recorder, Plack::VCR::Interaction

AUTHOR ^

Rob Hoelz <rob@hoelz.ro>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 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.

BUGS ^

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.

syntax highlighting: