Test2::Tools::HTTP::UA::LWPClass - Global LWP user agent wrapper for Test2::Tools::HTTP
version 0.07
use Test2::Tools::HTTP; use LWP::UserAgent; psgi_app_add 'http://example.test' => sub { ... }; http_ua 'LWP::UserAgent'; my $ua = LWP::UserAgent->new; my $res = $ua->get('http://example.test');
This class is not intended to be used directly.
This module provides the machinery for instrumenting LWP::UserAgent for use with Test2::Tools::HTTP. Since LWP::UserAgent. It is different from Test2::Tools::HTTP::UA::LWP in that it instruments the LWP::UserAgent class itself, so ALL instances will be able to use any apps registered.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2018 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test2::Tools::HTTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test2::Tools::HTTP
CPAN shell
perl -MCPAN -e shell install Test2::Tools::HTTP
For more information on module installation, please visit the detailed CPAN module installation guide.