Test2::Tools::HTTP::UA::LWPClass - Global LWP user agent wrapper for Test2::Tools::HTTP
version 0.12
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-2022 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.