NAME
LWP::UserAgent::ProgressAny - See progress for your LWP::UserAgent requests
VERSION
This document describes version 0.06 of LWP::UserAgent::ProgressAny (from Perl distribution LWP-UserAgent-ProgressAny), released on 2015-01-23.
SYNOPSIS
Use as LWP::UserAgent subclass:
use LWP::UserAgent::ProgressAny;
use Progress::Any::Output;
my $ua = LWP::UserAgent::ProgressAny->new;
Progress::Any::Output->set("TermProgressBarColor");
my $resp = $ua->get("http://example.com/some-big-file");
# you will see a progress bar in your terminal
Use with standard LWP::UserAgent or other subclasses:
use LWP::UserAgent;
use LWP::UserAgent::ProgressAny;
use Progress::Any::Output;
my $ua = LWP::UserAgent->new;
LWP::UserAgent::ProgressAny::__add_handlers($ua);
Progress::Any::Output->set("TermProgressBarColor");
my $resp = $ua->get("http://example.com/some-big-file");
DESCRIPTION
This module lets you see progress indicators when you are doing requests with LWP::UserAgent.
This module uses Progress::Any framework.
Sample output:
SEE ALSO
LWP::UserAgent::ProgressBar (LU::PB) is a similar module. It uses Term::ProgressBar to display progress bar and introduces two new methods: get_with_progress
and post_with_progress
. Compared to LWP::UserAgent::ProgressAny (LU::PA): LU::PA uses Progress::Any so you can get progress notification via means other than terminal progress bar simply by choosing another progress output. LU::PA is also more transparent, you don't have to use a different method to do requests. Lastly, LU::PA can be used with standard LWP::UserAgent or its other subclasses.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/LWP-UserAgent-ProgressAny.
SOURCE
Source repository is at https://github.com/perlancar/perl-LWP-UserAgent-ProgressAny.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=LWP-UserAgent-ProgressAny
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.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.