Skip to content

Latest commit

 

History

History
163 lines (87 loc) · 3.4 KB

README.pod

File metadata and controls

163 lines (87 loc) · 3.4 KB

NAME

AnyEvent::HTTP::Message - Lightweight objects for AnyEvent::HTTP Request/Response

VERSION

version 0.100

SYNOPSIS

# don't use this directly

DESCRIPTION

This is a base class for:

CLASS METHODS

new

The constructor accepts either a single hashref of named arguments, or a specialized list of arguments that will be passed to a the "parse_args" method (which must be defined by the subclass).

parse_args

Called by the constructor when "new" is not called with a single hashref.

Must be customized by subclasses.

ATTRIBUTES

body

Message content body

content

Alias for "body"

headers

Message headers (hashref)

METHODS

header

my $ua  = $message->header('User-Agent');
# same as $message->header->{'user-agent'};

Takes the specified key, converts _ to - and lower-cases it, then returns the value of that message header.

SUPPORT

Perldoc

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

perldoc AnyEvent::HTTP::Message

Websites

The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.

Bugs / Feature Requests

Please report any bugs or feature requests by email to bug-anyevent-http-message at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=AnyEvent-HTTP-Message. You will be automatically notified of any progress on the request by the system.

Source Code

https://github.com/rwstauner/AnyEvent-HTTP-Message

git clone https://github.com/rwstauner/AnyEvent-HTTP-Message.git

AUTHOR

Randy Stauner <rwstauner@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Randy Stauner.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.