View on
MetaCPAN
Polina Shubina > Regru-API > Regru::API::Role::UserAgent

Download:
Regru-API-0.046.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.046   Source  

NAME ^

Regru::API::Role::UserAgent - something that can act as user-agent

VERSION ^

version 0.046

SYNOPSIS ^

    package Regru::API::Client;
    ...
    with 'Regru::API::Role::UserAgent';
    ...
    $resp = $self->useragent->get('http://example.com/');

    if ($resp->is_success) {
        print $resp->decoded_content;
    }
    else {
        die $resp->status_line;
    }

DESCRIPTION ^

Any class or role that consumes this one will able to dispatch HTTP requests.

ATTRIBUTES ^

useragent

Returns an LWP::UserAgent instance.

SEE ALSO ^

Regru::API

Regru::API::Role::Client

LWP::UserAgent

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://github.com/regru/regru-api-perl/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by REG.RU LLC.

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

syntax highlighting: