NAME

Courriel::Header - A single header's name and value

VERSION

version 0.26

SYNOPSIS

my $subject = $headers->get('subject');
print $subject->value();

DESCRIPTION

This class represents a single header, which consists of a name and value.

API

This class supports the following methods:

Courriel::Header->new( ... )

This method requires two attributes, name and value. Both must be strings. The name cannot be empty, but the value can.

$header->name()

The header name as passed to the constructor.

$header->value()

The header value as passed to the constructor.

$header->as_header_string()

Returns the header name and value with any necessary MIME encoding and folding.

AUTHOR

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)