tadam/AnyEvent-HTTP-LWP-UserAgent — pull request #5 by yak1ex (2012-11-08 03:53:13+00:00)
Title: Add minimum support for request content by code reference, response content by filename or code reference

Hi.

Now, I'm trying to make Net::Amazon::S3 AnyEvent-friendly by using this module. The tests of Net::Amazon::S3 depends on LWP::UserAgent behavior more than ones emulated by this module. So, I implemented the following features and corresponding tests.

- Request content specified by code reference

NOTE: Actually, LWP::UserAgent uses chunked encoding in this case. It is, however, necessary to modify AnyEvent::HTTP itself. So, minimum support is added right now. Repeated calls of callback are made beforehand, and the results are collected and passed together.
- Response content specified by code reference
- Response content specified by filename