NAME
WWW::Snooze::Request - Main request object featuring autoloading
METHODS
new(%args)
headers
-
Override headers with an instance of HTTP::Headers
serializer
-
Override serializer with and instance of WWW::Snooze::Serialize
The request object uses autoloading method names to build the request. Calling a method on the request object will add that method name on to the URL stack and return a new request object with the new stack. The function can also be called with arguments:
my $r = WWW::Snooze::Request->new('http://example.com');
$r->foo(); # Request URL would be http://example.com/foo.json
$r->foo(42)->bar; # Request URL would be http://example.com/foo/42/bar.json
$r->foo(undef, foo => 'bar'); # Request would be http://example.com/foo?foo=bar
get()
delete()
HTTP operations on URL without extra parameters
post([\%data])
put([\%data])
HTTP operations on URL, using %data
ATTRIBUTES
args()
Return query string arguments added
serializer()
Return the serializer
AUTHOR
Anthony Johnson <aj@ohess.org>