Archive::Har::Entry::Cache - Represents the cache for a single request/response pair inside the HTTP Archive
Version 0.04
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"; }
returns the state of the cache before the request
returns the state of the cache after the request
returns the comment about the Entry
To install Archive::Har, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Archive::Har
CPAN shell
perl -MCPAN -e shell install Archive::Har
For more information on module installation, please visit the detailed CPAN module installation guide.