🌻 📖 Test2::Tools::HTTP::UA::LWP

NAME

Test2::Tools::HTTP::UA::LWP - LWP user agent wrapper for Test2::Tools::HTTP

VERSION

version 0.12

SYNOPSIS

 use Test2::Tools::HTTP;
 use LWP::UserAgent;
 
 psgi_app_add 'http://example.test' => sub { ... };
 
 my $ua = LWP::UserAgent->new;
 http_ua $ua;
 
 my $res = $ua->get('http://example.test');

DESCRIPTION

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 is the default user agent for Test2::Tools::HTTP, this is the default user agent wrapper as well. It is a subclass of Test2::Tools::HTTP::UA.

SEE ALSO

Test2::Tools::HTTP
Test2::Tools::HTTP::UA::LWPClass

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

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.