David Dick > Archive-Har-0.11 > Archive::Har::Entry::Cache

Download:
Archive-Har-0.11.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.11   Source  

NAME ^

Archive::Har::Entry::Cache - Represents the cache for a single request/response pair inside the HTTP Archive

VERSION ^

Version '0.11'

SYNOPSIS ^

    use Archive::Har();

    my $http_archive_string = '"log": { "version": "1.1", .... ';
    my $har = Archive::Har->new();
    $har->string($http_archive_string);
    foreach my $entry ($har->entries()) {
        my $cache = $entry->cache();
        my $before = $cache->before_request();
        my $after = $cache->after_request();
        print "Comment: " . $cache->comment() . "\n";
    }

SUBROUTINES/METHODS ^

new

returns a new Cache object

before_request

returns the state of the cache before the request

after_request

returns the state of the cache after the request

comment

returns the comment about the Entry

syntax highlighting: