WWW::Curl::Simple::Request - A small class representing request/response


WWW-Curl-Simple documentation  | view source Contained in the WWW-Curl-Simple distribution.

Index


NAME

Top

WWW::Curl::Simple::Request - A small class representing request/response

VERSION

Top

version 0.100184

DESCRIPTION

Top

Just a way to collect things used by both single and multi, and some WWW::Curl setup. You shouldn't need to use this class anywhere, although $curl->perform returns objects of this class.

ATTRIBUTES

Top

agent

A String that will be sent as the user-agent string. Defaults to "WWW::Curl::Simple/" plus the current version number.

body

The body of the response.

The head of the response.

request

The HTTP::Request object used to create this response.

easy

The WWW::Curl::Easy object which created this response.

METHODS

Top

perform

Performs the actual request throug WWW::Curl::Easy. Used mostly in single request land. Will croak on errors.

response

Returns a HTTP::Response that represents the response of this object.

Also sets request on the response object to the original request object.

AUTHOR

Top

Andreas Marienborg <andremar@cpan.org>

COPYRIGHT AND LICENSE

Top


WWW-Curl-Simple documentation  | view source Contained in the WWW-Curl-Simple distribution.