Subject: | use external PoCo::Client::HTTP object |
In POE::Component::Net::LastFM::Submission, you start a new
POE::Component::Client::HTTP no matter what. I think it would be better
to accept a parameter that lists the alias/id of an existing
::Client::HTTP object.
That way you can
a) not run multiple instances of ::Client::HTTP if you need one for
other things too
b) configure it beyond the Agent and Timeout parameters that you're
passing through now. (someone might need to use a proxy for example)
You can then always start your own ::Client::HTTP when the user didn't
supply the parameter.