namespacing for LWP::UserAgent subclasses

[email protected] (Tim Brody) Wed, 16 Mar 2011 12:06:52 +0000
Newsgroups perl.libwww
Message-ID <EMEW3|edb69a42052cffb649a9462ad89bacdbn2FC6s04tdb2|ecs.soton.ac.uk|[email protected]>
Hi All,

I've written a couple of LWP::UserAgent sub-classes that add signing for
Amazon S3 & OAuth. I realise there are existing modules that cover the
whole scope of these protocols but I rarely need all that weight - I
just need something to add the (tricky to get right) signature bits to
the requests.

This is how they work:
my $ua = MySubclass->new( key => "foo" );

my $r = $ua->post( "...", [ param1 => "bar, ... ] );

->request() is subclassed and automatically adds the required signing.

So what should "MySubclass" be called if I upload these to CPAN?

LWP::UserAgent::S3 (my first thought)
LWP::Auth::S3
Amazon::S3::LWP

???

/Tim.