Help for this page

Select Code to Download


  1. or download this
    my $w;
    my $cv = http_request GET => $url, ..., sub { $w = undef; callback(...
    +) }; # kill the watcher when we're done
    $w  = AE::timer $timeout, 0, sub { $cv = undef }; # kill the http requ
    +est after $timeout seconds