| 1 |
Test::HTTP::LocalServer - spawn a local HTTP server for testing |
| 2 |
|
| 3 |
DESCRIPTION |
| 4 |
|
| 5 |
This module implements a tiny web server suitable for running "live" tests |
| 6 |
of HTTP clients against it. It also takes care of cleaning C<%ENV> from settings |
| 7 |
that influence the use of a local proxy etc. |
| 8 |
|
| 9 |
Use this web server if you write an HTTP client and want to exercise its |
| 10 |
behaviour in your test suite without talking to the outside world. |
| 11 |
|
| 12 |
|
| 13 |
INSTALLATION |
| 14 |
|
| 15 |
This is a Perl module distribution. It should be installed with whichever |
| 16 |
tool you use to manage your installation of Perl, e.g. any of |
| 17 |
|
| 18 |
cpanm . |
| 19 |
cpan . |
| 20 |
cpanp -i . |
| 21 |
|
| 22 |
Consult https://www.cpan.org/modules/INSTALL.html for further instruction. |
| 23 |
Should you wish to install this module manually, the procedure is |
| 24 |
|
| 25 |
perl Makefile.PL |
| 26 |
make |
| 27 |
make test |
| 28 |
make install |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
SEE ALSO |
| 38 |
|
| 39 |
L<WWW::Mechanize>,L<WWW::Mechanize::Shell>,L<WWW::Mechanize::Firefox> |
| 40 |
|
| 41 |
AUTHOR |
| 42 |
|
| 43 |
Max Maischein, E<lt>[email protected]<gt> |
| 44 |
|
| 45 |
Please contact me if you find bugs or otherwise improve the module. More tests |
| 46 |
are also very welcome ! |
| 47 |
|
| 48 |
|
| 49 |
COPYRIGHT AND LICENSE |
| 50 |
|
| 51 |
This library is free software; you can redistribute it and/or modify it under |
| 52 |
the same terms as Perl itself. |
| 53 |
|
| 54 |
Copyright (C) 2003-2024 Max Maischein |