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::Page - Represents a single page 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 $page ($har->pages()) {
        print "DateTime: " . $page->started_date_time() . "\n";
        print "Id: " . $page->id() . "\n";
        print "Title: ". $page->title() . "\n";
        my $timing = $page->page_timings();
        print "Comment: " . $page->comment() . "\n";
    }

SUBROUTINES/METHODS

started_date_time

returns the date and time stamp for the beginning of the page load (ISO 8601 format)

id

returns the unique identifier of a page within the Archive. This is referenced by the Archive::Har::Entry objects

title

returns the page title

page_timings

returns the page timings object

comment

returns the comment about the Page