David Dick > Archive-Har-0.04 > Archive::Har::Page

Download:
Archive-Har-0.04.tar.gz

Dependencies

Annotate this POD

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

NAME ^

Archive::Har::Page - Represents a single page 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 $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";
    }

SUBROUTINES/METHODS ^

startedDateTime

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

pageTimings

returns the page timings object

comment

returns the comment about the Page

syntax highlighting: