AnyEvent::HTTP::MXHR - AnyEvent MXHR Client
use AnyEvent::HTTP::MXHR; my $guard = mxhr_get $uri, [key => val,] sub { my ($body, $headers) = @_; # return true if you want to keep reading. return false # if you would like to stop return 1; };
WARNING: alpha quality code!
Sends an HTTP GET request, and for each item in the multipar response, executes $cb. $cb receives the body of the item, and the sub headers within that item (NOT the initial headers)
$cb
The callback should return a true value if it should keep reading.
Daisuke Maki <daisuke@endeworks.jp>
<daisuke@endeworks.jp>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install AnyEvent::HTTP::MXHR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::HTTP::MXHR
CPAN shell
perl -MCPAN -e shell install AnyEvent::HTTP::MXHR
For more information on module installation, please visit the detailed CPAN module installation guide.