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

Download:
Archive-Har-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.04   Source   Latest Release: Archive-Har-0.05

NAME ^

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

VERSION ^

Version 0.04

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->beforeRequest();
        my $after = $cache->afterRequest();
        print "Comment: " . $cache->comment() . "\n";
    }

SUBROUTINES/METHODS ^

beforeRequest

returns the state of the cache before the request

afterRequest

returns the state of the cache after the request

comment

returns the comment about the Entry

syntax highlighting: