NAME

AnyEvent::HTTP::MXHR - AnyEvent MXHR Client

SYNOPSIS

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;
};

DESCRIPTION

WARNING: alpha quality code!

FUNCTION

mxhr_get $uri, key => value..., $cb->($body, $headers, $handle)

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.

AUTHOR

Daisuke Maki <daisuke@endeworks.jp>

LICENSE

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