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
LICENSE
BSD license