Activiti-Rest-Client
view release on metacpan or search on metacpan
lib/Activiti/Rest/Response.pm view on Meta::CPAN
content_type => $content_type
);
if($res->code ne "204" && defined($content_type)){
$new_args{content} = $res->content;
if($content_type =~ /json/o){
$new_args{parsed_content} = JSON::decode_json($res->content);
}elsif($content_type =~ /(xml|html)/o){
$new_args{parsed_content} = $res->decoded_content();
}
}
__PACKAGE__->new(%new_args);
}
1;
( run in 0.358 second using v1.01-cache-2.11-cpan-26ccb49234f )