NAME

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

SYNOPSIS

    use Net::Azure::EventHubs::Request;
    use LWP::UserAgent;
    my $req = Net::Azure::EventHubs::Request->new(GET => 'http://...');
    $req->agent(LWP::UserAgent->new);
    my $res = $req->do;

DESCRIPTION

Net::Azure::EventHubs::Request is a request class for Net::Azure::EventHubs.

It inherits HTTP::Request.

METHODS

new

A constructor method.

agent

    my $agent = LWP::UserAgent->new(...);
    $req->agent($agent);

An accessor for setting/getting a LWP::UserAgent object

do

    my $res = $req->do;

Do itself as http/https request with agent. Then returns a response object.

LICENSE

Copyright (C) ytnobody.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

ytnobody <ytnobody@gmail.com>