Group
Extension

Matches 2

Net-Azure-EventHubs ( Y/YT/YTURTLE/Net-Azure-EventHubs-0.10.tar.gz, YTURTLE, 2024; MetaCPAN )
Net-Azure-EventHubs/lib/Net/Azure/EventHubs.pm ( view source; MetaCPAN )
trict;
use warnings;

use Net::Azure::EventHubs::Request;
use Net::Azure::Authorization::SAS;
use JSON;
use LWP::UserAgent;
use URI;
use Carp;
use Try::Tiny;

use Class::Accessor::Lite (
    new => 0,
  = LWP::UserAgent->new(agent => sprintf('%s/%s', $class, $VERSION));
    $param{serializer}    = JSON->new->utf8(1);
    $param{api_version} ||= $DEFAULT_API_VERSION;
    $param{timeout}     ||= $DEF
Net-Azure-EventHubs ( Y/YT/YTURTLE/Net-Azure-EventHubs-0.10.tar.gz, YTURTLE, 2024; MetaCPAN )
Net-Azure-EventHubs/lib/Net/Azure/EventHubs/Response.pm ( view source; MetaCPAN )
e';
use JSON;
use Carp;

sub as_hashref {
    my $self = shift;
    return if !$self->is_success;

    my $type = $self->header('Content-Type'); 
    if ($type && $type =~ /\Aapplication\/json/) {
   
     return JSON->new->utf8(1)->decode($self->content);
    }
    return;
}

1;

=encoding utf-8

=head1 NAME

Net::Azure::EventHubs::Response - A Response Class for Net::Azure::EventHubs 

=head1 SYN
->new(GET => 'http://...');
    $req->agent(LWP::UserAgent->new);
    my $res = $req->do;
    my $json_data = $res->as_hashref;

=head1 DESCRIPTION

Net::Azure::EventHubs::Response is a response class

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.