CPANPLUS-Internals-Source-MetaCPAN
view release on metacpan or search on metacpan
lib/CPANPLUS/Internals/Source/MetaCPAN/HTTP.pm view on Meta::CPAN
return undef;
}
$url = "$testpath/bigbinary.dat";
open OUT, ">bigbinary.dat";
$res = $http->request($url, \&savetofile, OUT);
close OUT;
=item set_callback ( $functionref, $dataref )
At various stages of the request, callbacks may be used to modify the
behaviour or to monitor the status of the request. These work like the
$data_callback parameter to request(), but are more verstaile. Using
set_callback disables $data_callback in request()
The callbacks are called as:
callback ( $self, $phase, $dataref, $cbargs )
The current phases are:
connect - connection has been established and headers are being
transmitted.
content-length - return value is used as the content-length. If undef,
and prepare_post() was used, the content length is
calculated.
( run in 3.426 seconds using v1.01-cache-2.11-cpan-9b1e4054eb1 )