
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)
The callback should return a true value if it should keep reading.

Daisuke Maki <daisuke@endeworks.jp>

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