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

NAME

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

VERSION

version 0.302

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

  • an instance of an appropriate subclass of HTTP::Message (with an optional hashref of additional parameters)

  • or a specialized list of arguments that will be passed to "parse_args" (which must be defined by the subclass).

parse_args

Called by the constructor when "new" is called with a list of arguments.

Must be customized by subclasses.

from_http_message

Called by the constructor when "new" is called with an instance of a HTTP::Message subclass.

Must be customized by subclasses.

ATTRIBUTES

body

Message content body

content

Alias for "body"

headers

Message headers (hashref)

METHODS

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

Takes the specified key, converts underscores to dashes 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.