David Dick > Archive-Har-0.05 > Archive::Har::Entry::Header

Download:
Archive-Har-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Archive::Har::Entry::Header - Represents a single http header object for a request or response inside the HTTP Archive

VERSION ^

Version 0.05

SYNOPSIS ^

    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 $request = $entry->request();
        foreach my $header ($request->headers()) {
                print "Name: " . $header->name() . "\n";
                print "Value: " . $header->value() . "\n";
                print "Comment: " . $header->comment() . "\n";
        }
    }

SUBROUTINES/METHODS ^

name

returns the name of the http header

value

returns the value of the http header

comment

returns the comment about the header

syntax highlighting: