NAME
WWW::DNSMadeEasy::Response - DNSMadeEasy Response
VERSION
version 0.100
SYNOPSIS
my $response = WWW::DNSMadeEasy->new(...)->request(...);
if ($response->is_success) {
my $data = $response->as_hashref;
my $requestsremaining = $response->header('x-dnsme-requestsremaining');
} else {
my @errors = $response->error;
}
DESCRIPTION
Response object to fetch headers and error data
METHODS
is_success
content
decoded_content
status_line
code
header
as_string
All above are from HTTP::Response
my $requestsremaining = $response->header('x-dnsme-requestsremaining');
my $json_data = $response->as_string;
as_hashref
my $data = $response->as_hashref;
convert response JSON to HashRef
error
my @errors = $response->error;
get the detailed request errors
SUPPORT
Source Code
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)
https://github.com/Getty/p5-www-dnsmadeeasy
git clone https://github.com/Getty/p5-www-dnsmadeeasy.git
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.