XDI
(
H/HO/HORST/XDI-0.05.tar.gz, HORST, 2012;
MetaCPAN
)
TP::Request->new( 'POST', $server);
my $ua = new LWP::UserAgent;
my $cheader = 'application/xdi+json';
if ($context) {
$cheader .= ';contexts=1';
}
$request->header('accept' => $cheader);
$req
", $response->status_line;
return undef;
}
}
sub _xdi_response {
my ($json) = @_;
my $struct = XDI::_decode($json);
if (defined $struct) {
my $tuple = XDI::pick_xdi_tuple($struct,['$false$
is a JSON encoded representation of the nodes requested in the $get operation. Other
operations will return an empty hash {} upon success. Default behavior is to automatically convert
the JSON to a