Archive::Har::Page - Represents a single page inside the HTTP Archive
Version 0.05
use Archive::Har(); my $http_archive_string = '"log": { "version": "1.1", .... '; my $har = Archive::Har->new(); $har->string($http_archive_string); foreach my $page ($har->pages()) { print "DateTime: " . $page->startedDateTime() . "\n"; print "Id: " . $page->id() . "\n"; print "Title: ". $page->title() . "\n"; my $timing = $page->pageTimings(); print "Comment: " . $page->comment() . "\n"; }
returns the date and time stamp for the beginning of the page load (ISO 8601 format)
returns the unique identifier of a page within the Archive. This is referenced by the Archive::Har::Entry objects
returns the page title
returns the page timings object
returns the comment about the Page
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.