Jeff Ober > Reddit-Client-0.06 > Reddit::Client::Request

Download:
Reddit-Client-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: Reddit-Client-0.8

NAME ^

Reddit::Client::Request

DESCRIPTION ^

HTTP request driver for Reddit::Client. Uses LWP to perform GET and POST requests to the reddit.com servers. This module is used internally by the Reddit::Client and is not designed for external use.

SUBROUTINES/METHODS ^

new(%params)

Creates a new Reddit::Request::API instance. Parameters:

    user_agent    User agent string
    url           Target URL
    query         Hash of query parameters
    post_data     Hash of POST parameters
    cookie        Reddit session cookie
    modhash       Reddit session modhash
build_query($query)

Builds a URI-escaped query string from a hash of query parameters. This is *not* a method of the class, but a package routine.

build_request

Builds an HTTP::Request object for LWP::UserAgent.

send

Performs the HTTP request and returns the result. Croaks on HTTP error.

AUTHOR ^

Jeff Ober mailto:jeffober@gmail.com

LICENSE ^

BSD license

syntax highlighting: