ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/LWP.pm
(Generate patch)

Comparing Coro/Coro/LWP.pm (file contents):
Revision 1.57 by root, Tue Jun 14 06:17:42 2011 UTC vs.
Revision 1.58 by root, Tue Jun 14 06:19:00 2011 UTC

7 use Coro::LWP; # afterwards LWP should not block 7 use Coro::LWP; # afterwards LWP should not block
8 8
9=head1 ALTERNATIVES 9=head1 ALTERNATIVES
10 10
11Over the years, a number of less-invasive alternatives have popped up, 11Over the years, a number of less-invasive alternatives have popped up,
12which you might find more acceptable than this rather invasive and 12which you might find more acceptable than this rather invasive and fragile
13fragile module: 13module. All of them only support HTTP (and sometimes HTTPS).
14 14
15=over 4 15=over 4
16 16
17=item L<AnyEvent::HTTP> 17=item L<AnyEvent::HTTP>
18 18
19For HTTP and HTTPS only, works fine without Coro. Requires using a very 19Works fine without Coro. Requires using a very different API than
20different API than LWP. 20LWP. Probably the best choice I<iff> you can do with a completely
21different event-based API.
21 22
22=item L<LWP::Protocol::AnyEvent::http> 23=item L<LWP::Protocol::AnyEvent::http>
23 24
24Makes LWP use L<AnyEvent::HTTP>. Does not make LWP event-based, but allows 25Makes LWP use L<AnyEvent::HTTP>. Does not make LWP event-based, but allows
25Coro threads to schedule unimpeded through its AnyEvent integration. 26Coro threads to schedule unimpeded through its AnyEvent integration.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines