module documentation

Simple HTTP request dumper for tests.
Class ​HTTPRequest​Collector Undocumented
Class ​Web​Server A web server that starts a new thread for each request.
Function build​_web​_server Undocumented
Function webserver Context manager entry point for the 'with' statement.
Class _​Request​Handler Undocumented
def build_web_server(app, port, host=None):

Undocumented

@contextmanager
def webserver(app, port=0, host=None):

Context manager entry point for the 'with' statement.

Pass 0 as port number to dynamically allocate a free port.

Usage:

with webserver(wsgi_app_function, 8080) as host_url:
do_ws_calls(host_url)