The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Archive::Har - Provides an interface to HTTP Archive (HAR) files

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);
    print $har->creator()->name() . ' version ' . $har->creator()->version();
    $har->creator()->name("new name"); # update har
    print $har->browser()->name() . ' version ' . $har->browser()->version();
    foreach my $page = $har->pages()) {
       print "Page Title: " . $page->title() . "\n";

    }
    print $har; # print har in stringified pretty form
    ...

SUBROUTINES/METHODS

new

Archive::Har->new() will return a new har object, ready to process http archives

string

$har->string() accepts a stringified version of an http archive and parses it. It returns the previous state of the archive in stringified form

error

$har->error() will return the most recent error message generated by $har

version

$har->version() will return the version of the HTTP Archive ('1.1' by default);

creator

$har->creator() will return the creator object for the HTTP Archive

browser

$har->browser() will return the browser object for the HTTP Archive

pages

$har->pages() will return the list of page objects for the HTTP Archive

entries

$har->entries() will return the list of entry objects for the HTTP Archive

comment

$har->comment() will return the comment for the HTTP Archive

SEE ALSO

The HTTP Archive Spec <http://www.softwareishard.com/blog/har-12-spec/>

AUTHOR

David Dick, <ddick at cpan.org>

BUGS

Please report any bugs or feature requests to bug-archive-har at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Archive-Har. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Archive::Har

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012 David Dick.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.