10 Mar 2017 13:29:46 UTC
- Distribution: HTTP-Tiny-Mech
- Module version: 1.001002
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (1886 / 0 / 0)
- KwaliteeBus factor: 0
- 100.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (27.77KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Why not adopt me?This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.
- WRAPPED METHODS
- COPYRIGHT AND LICENSE
HTTP::Tiny::Mech - Wrap a WWW::Mechanize instance in an HTTP::Tiny compatible interface.
# Get something that expects an HTTP::Tiny instance # to work with HTTP::Mechanize under the hood. # my $thing => ThingThatExpectsHTTPTiny->new( ua => HTTP::Tiny::Mech->new() ); # Get something that expects HTTP::Tiny # to work via WWW::Mechanize::Cached # my $thing => ThingThatExpectsHTTPTiny->new( ua => HTTP::Tiny::Mech->new( mechua => WWW::Mechanize::Cached->new( ) ); );
This code is somewhat poorly documented, and highly experimental.
It works so far for this purpose.
This class provides one non-standard parameter not in HTTP::Tiny,
mechua, which is normally an autovivified
You may override this parameter if you want to provide a custom instance of a
Interface should be the same as it is with "get" in HTTP::Tiny.
Interface should be the same as it is with "request" in HTTP::Tiny
Kent Fredric <email@example.com>
This software is copyright (c) 2017 by Kent Fredric <firstname.lastname@example.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install HTTP::Tiny::Mech, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install HTTP::Tiny::Mech
For more information on module installation, please visit the detailed CPAN module installation guide.