The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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