Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/corion/test-http-localserver

spawn a local HTTP server for testing
https://github.com/corion/test-http-localserver

Last synced: about 1 month ago
JSON representation

spawn a local HTTP server for testing

Awesome Lists containing this project

README

        

Test::HTTP::LocalServer - spawn a local HTTP server for testing

DESCRIPTION

This module implements a tiny web server suitable for running "live" tests
of HTTP clients against it. It also takes care of cleaning C<%ENV> from settings
that influence the use of a local proxy etc.

Use this web server if you write an HTTP client and want to exercise its
behaviour in your test suite without talking to the outside world.

INSTALLATION

This is a Perl module distribution. It should be installed with whichever
tool you use to manage your installation of Perl, e.g. any of

cpanm .
cpan .
cpanp -i .

Consult https://www.cpan.org/modules/INSTALL.html for further instruction.
Should you wish to install this module manually, the procedure is

perl Makefile.PL
make
make test
make install

SEE ALSO

L,L,L

AUTHOR

Max Maischein, [email protected]

Please contact me if you find bugs or otherwise improve the module. More tests
are also very welcome !

COPYRIGHT AND LICENSE

This library is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.

Copyright (C) 2003-2024 Max Maischein